From owner-cvs-all Tue Oct 9 16:27:51 2001 Delivered-To: cvs-all@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 5BE5B37B403; Tue, 9 Oct 2001 16:27:44 -0700 (PDT) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id f99NRhu08688; Tue, 9 Oct 2001 17:27:43 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost [127.0.0.1]) by harmony.village.org (8.11.6/8.11.6) with ESMTP id f99NRg769889; Tue, 9 Oct 2001 17:27:42 -0600 (MDT) (envelope-from imp@harmony.village.org) Message-Id: <200110092327.f99NRg769889@harmony.village.org> To: nate@yogotech.com (Nate Williams) Subject: Re: cvs commit: src/lib/libc/string strnstr.c Makefile.inc strstr.3 src/include string.h Cc: Mike Barcroft , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org In-reply-to: Your message of "Tue, 09 Oct 2001 13:40:02 MDT." <15299.21138.651648.144237@nomad.yogotech.com> References: <15299.21138.651648.144237@nomad.yogotech.com> <200110090129.f991Tvs39485@freefall.freebsd.org> Date: Tue, 09 Oct 2001 17:27:42 -0600 From: Warner Losh 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 In message <15299.21138.651648.144237@nomad.yogotech.com> 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...) Actaully, str* is reserved for the implementation space. A conforming program cannot define str* routines, so this will not break any conforming program. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message