From owner-cvs-all Tue Oct 9 12:40:17 2001 Delivered-To: cvs-all@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id 7F6B237B403; Tue, 9 Oct 2001 12:40:08 -0700 (PDT) Received: from nomad.yogotech.com (nomad.yogotech.com [206.127.123.131]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id NAA26410; Tue, 9 Oct 2001 13:40:03 -0600 (MDT) (envelope-from nate@nomad.yogotech.com) Received: (from nate@localhost) by nomad.yogotech.com (8.8.8/8.8.8) id NAA04319; Tue, 9 Oct 2001 13:40:03 -0600 (MDT) (envelope-from nate) From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15299.21138.651648.144237@nomad.yogotech.com> Date: Tue, 9 Oct 2001 13:40:02 -0600 To: Mike Barcroft 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 In-Reply-To: <200110090129.f991Tvs39485@freefall.freebsd.org> References: <200110090129.f991Tvs39485@freefall.freebsd.org> X-Mailer: VM 6.95 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) 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 > 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...) Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message