The ups and downs of strlcpy()
The ups and downs of strlcpy()
Posted Jul 19, 2012 15:27 UTC (Thu) by walters (subscriber, #7396)Parent article: The ups and downs of strlcpy()
But note if you're programming in C, you also have the option to entirely skip the crappy variants of C string concatentation routines and use e.g.
http://git.gnome.org/browse/glib/tree/glib/gstring.h
http://git.gnome.org/browse/glib/tree/glib/gstring.h
Data structures like that make it *hard* to do things incorrectly, and are quite efficient enough.
There's very little reason not to use a framework like GLib, APR, or the Samba stuff.
(Log in to post comments)


