This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Time to add strlcpy/strlcat FINALLY


On 08/14/2014 03:01 PM, Mike Frysinger wrote:
> On Wed 13 Aug 2014 23:02:05 William Park wrote:
>> What are the alternatives, though?  Everyone criticizes 'strcpy' but
>> it's included in glibc.  But, 'strlcpy' is excluded on the ground that
>> it's not sufficiently better.  Seems to me, someone has sensitive toes.
> 
> err, no, your example makes no sense.  one of these things is in the standards 
> documents while the other is not.  get strlcpy into POSIX :P.

These functions were apparently explicitly rejected by POSIX.

For those new to this well worn debate, my article here provides some
background: https://lwn.net/Articles/507319/

Cheers,

Michael



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]