3 ms·
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 coupl
by olau 7y ago
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-concatenate-const-literal-strings-in-c https://stackoverflow.com/questions/308695/how-do-i-concaten...
snprintf looks like it is the easiest way out.