News for hackers. Stuff that matters.
Re:Some Were Meant for C (2017) [pdf] by olau on Thursday April 25, 2019 @06:34AM (#19746682)
It's been a long time since I wrote C, but the main problem in my recollection is that the standard library is not intuitive. Something simple like take a couple of arbitrary strings, concatenate them and return the result without leaking memory and not causing buffer overflows is not as trivial as it should be.

I don't think is a huge problem per se, though, you can just use a string library.

See the confusion here for an example: https://stackoverflow.com/questions/308695/how-do-i-concaten...

snprintf looks like it is the easiest way out.

There are no comments on this comment yet.