From owner-cvs-all Tue Oct 9 12:58:39 2001 Delivered-To: cvs-all@freebsd.org Received: from coffee.q9media.com (coffee.q9media.com [216.94.229.19]) by hub.freebsd.org (Postfix) with ESMTP id 79A4537B407; Tue, 9 Oct 2001 12:58:33 -0700 (PDT) Received: (from mike@localhost) by coffee.q9media.com (8.11.6/8.11.6) id f99JxQJ49558; Tue, 9 Oct 2001 15:59:26 -0400 (EDT) (envelope-from mike) Date: Tue, 9 Oct 2001 15:59:26 -0400 From: Mike Barcroft To: Nate Williams Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/string strnstr.c Makefile.inc strstr.3 src/include string.h Message-ID: <20011009155926.A49279@coffee.q9media.com> References: <200110090129.f991Tvs39485@freefall.freebsd.org> <15299.21138.651648.144237@nomad.yogotech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15299.21138.651648.144237@nomad.yogotech.com>; from nate@yogotech.com on Tue, Oct 09, 2001 at 01:40:02PM -0600 Organization: The FreeBSD Project Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Nate Williams writes: > > 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. > > Aren't names that start with str reserved by ANSI? Therefore, adding a > non-standard routing with this name is a violation of the C language. > > (Bruce would know more...) From looking at , I see 9 existing non-standard str...(3) functions. I don't think I'm breaking any new ground with this commit. Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message