Date: Tue, 09 Oct 2001 10:55:29 +0100 From: Brian Somers <brian@freebsd-services.com> To: Mike Barcroft <mike@FreeBSD.org> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, brian@freebsd-services.com Subject: Re: cvs commit: src/lib/libc/string strnstr.c Makefile.inc strstr.3 src/include string.h Message-ID: <200110090955.f999tT490240@hak.lan.Awfulhak.org> In-Reply-To: Message from Mike Barcroft <mike@FreeBSD.org> of "Mon, 08 Oct 2001 18:29:57 PDT." <200110090129.f991Tvs39485@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> mike 2001/10/08 18:29:56 PDT > > Modified files: > lib/libc/string Makefile.inc strstr.3 > include string.h > Added files: > lib/libc/string strnstr.c > Log: > Add a new libc function, strnstr(3), which allows one to limit the > number of characters that are searched. This is especially useful > with file operations and non-NUL terminated strings. > > Silence from: -audit, -hackers > MFC after: 5 days > > Revision Changes Path > 1.7 +3 -1 src/include/string.h > 1.24 +3 -1 src/lib/libc/string/Makefile.inc > 1.1 +70 -0 src/lib/libc/string/strnstr.c (new) > 1.8 +51 -12 src/lib/libc/string/strstr.3 Is this based on any known standard ? If not, shouldn't there be a mention that this is a FreeBSD specific API in the man page ? Also, does this need to be MFC'd (I would say not), and does __FreeBSD_version need to be bumped ? -- Brian <brian@freebsd-services.com> <brian@Awfulhak.org> http://www.freebsd-services.com/ <brian@[uk.]FreeBSD.org> Don't _EVER_ lose your sense of humour ! <brian@[uk.]OpenBSD.org> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110090955.f999tT490240>