Date: Sat, 12 May 2001 01:35:29 -0500 From: seebs@bsdi.com (Peter Seebach) To: dan@bsdpro.com Cc: freebsd-hackers@freebsd.org Subject: Re: adding a new function to libc Message-ID: <200105120635.f4C6ZUq15722@guild.plethora.net> In-Reply-To: Your message of "Sat, 12 May 2001 02:10:45 EDT." <01051202104500.95296@blackhole.BSDpro.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <01051202104500.95296@blackhole.BSDpro.com>, Daniel Hemmerich writes : >Any comments, suggestions, swears concerning adding a new function, >strndup(), to libc? Well, the obvious potential concern is that str[a-z]* is reserved namespace, and what if a future spec has a *different* strndup? >So that instead of permitting it to attempt to allocate a large chunk of >memory, it is possible to give it a max length. Well, this one is clearly wrong, because if you have a string of max_len, it isn't terminated. -s To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105120635.f4C6ZUq15722>