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

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




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