Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Oct 2001 17:27:42 -0600
From:      Warner Losh <imp@harmony.village.org>
To:        nate@yogotech.com (Nate Williams)
Cc:        Mike Barcroft <mike@FreeBSD.org>, 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:  <200110092327.f99NRg769889@harmony.village.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> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110092327.f99NRg769889>