> With proper error handling, that's about 50 lines of C code.
Writing proper error handling in C is a very tedious and error prone task. So it doesn't surprise me that people would rather call another library instead.
> So it doesn't surprise me that people would rather call another library instead.
Which shall be harder to justify now: "You're calling a gigantic library full of potential security holes just to call one function, to save writing a few lines of code, are you trying to JIA TAN the project?".
> Writing proper error handling in C is a very tedious and error prone task.
Managing C dependencies is even more tedious and error prone. And even in C, opening a UNIX ___domain socket to write a single packet is not that hard.
Writing proper error handling in C is a very tedious and error prone task. So it doesn't surprise me that people would rather call another library instead.