LWN.net Logo

Still no strlcpy and friends

Still no strlcpy and friends

Posted Mar 24, 2012 16:23 UTC (Sat) by tjc (subscriber, #137)
In reply to: Still no strlcpy and friends by PaXTeam
Parent article: GNU libc 2.15 released

I've always found snprintf to be a reasonable alternative to strlcpy, and I remain unmoved by your contempt for programmers who use it! :)

Perhaps an a well-reasoned explanation as to why you think its bad would persuade me otherwise...


(Log in to post comments)

Still no strlcpy and friends

Posted Mar 24, 2012 18:16 UTC (Sat) by PaXTeam (subscriber, #24616) [Link]

if strlcpy is the best fit for a particular problem then you don't 'emulate' it, you use it. and if it's not present in your system then you implement it.

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