The Wayback Machine - https://web.archive.org/web/20231209162005/https://lwn.net/Articles/507445/
| |
Subscribe / Log in / New account

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

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)


Copyright © 2023, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds