Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

It's 2015 and Linus still doesn't know what a C string is

Name: Anonymous 2015-05-09 1:49

Name: Anonymous 2015-05-10 19:40

So what's the New Improved Method to replace strlcpy(buffer, "the default value", size_of_buffer);, then? Surely nothing that involves typing the string literal twice.

That being said, there are circumstances where mempcpy() etc. would be just the bee's knees. strlcpy() isn't one. strlcat(), though, is.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List