Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Oct 2001 15:59:26 -0400
From:      Mike Barcroft <mike@FreeBSD.org>
To:        Nate Williams <nate@yogotech.com>
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>
In-Reply-To: <15299.21138.651648.144237@nomad.yogotech.com>; from nate@yogotech.com on Tue, Oct 09, 2001 at 01:40:02PM -0600
References:  <200110090129.f991Tvs39485@freefall.freebsd.org> <15299.21138.651648.144237@nomad.yogotech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Nate Williams <nate@yogotech.com> 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 <string.h>, 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




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