LWN.net Logo

better code

better code

Posted May 31, 2003 20:36 UTC (Sat) by fjord (guest, #6510)
In reply to: better code by tjc
Parent article: strlcpy()

Hmm, I haven't actually read the original documentation for the strl* functions, but according to this:

http://sources.redhat.com/ml/libc-alpha/2000-08/msg00110.html

strlcpy should return the size of the source string and do nothing, if the buffer is too small.


(Log in to post comments)

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