On Fri, Mar 14, 2014 at 04:52:51PM -0700, Claus Assmann wrote: > On Fri, Mar 14, 2014, Derek Martin wrote: > > > char *a = "foo"; > > char *b = "bar"; > > char c[7]; > > strlcpy(a, c, 7); > > strlcat(b, c, 7); > > I guess you didn't read the man page?
Gee, I wonder why I never thought of that?!?! $ man strlcpy No manual entry for strlcpy $ man strlcat No manual entry for strlcat > Oh, you use Linux. So does probably the vast majority of the Mutt audience. > Of course they don't have useful man pages and miss important > functions. Geez, even SunOS 5.x has these. The fact is these functions are non-standard BSD-isms. You can't write portable code that uses them. > Ok, this isn't going anywhere useful. Indeed. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02 -=-=-=-=- This message is posted from an invalid address. Replying to it will result in undeliverable mail due to spam prevention. Sorry for the inconvenience.
pgpwHZvJc2HAz.pgp
Description: PGP signature
