summaryrefslogtreecommitdiffstats
path: root/include/string.h
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2001-10-09 01:29:56 +0000
committermike <mike@FreeBSD.org>2001-10-09 01:29:56 +0000
commit9a27a4f0fe38f10e63129f3c8a66f7518bcec44d (patch)
treee211e48c706a6cba3be5da1192f50a34f20109a8 /include/string.h
parent5c6420034e70959dbac169b4709905cd37b3ec5f (diff)
downloadFreeBSD-src-9a27a4f0fe38f10e63129f3c8a66f7518bcec44d.zip
FreeBSD-src-9a27a4f0fe38f10e63129f3c8a66f7518bcec44d.tar.gz
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. Silence from: -audit, -hackers MFC after: 5 days
Diffstat (limited to 'include/string.h')
-rw-r--r--include/string.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/string.h b/include/string.h
index 0d2b388..bcb2b69 100644
--- a/include/string.h
+++ b/include/string.h
@@ -30,7 +30,8 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * @(#)string.h 8.1 (Berkeley) 6/2/93
+ * From: @(#)string.h 8.1 (Berkeley) 6/2/93
+ * $FreeBSD$
*/
#ifndef _STRING_H_
@@ -87,6 +88,7 @@ size_t strlcat __P((char *, const char *, size_t));
size_t strlcpy __P((char *, const char *, size_t));
void strmode __P((int, char *));
int strncasecmp __P((const char *, const char *, size_t));
+char *strnstr __P((const char *, const char *, size_t));
char *strsep __P((char **, const char *));
char *strsignal __P((int));
char *strtok_r __P((char *, const char *, char **));
OpenPOWER on IntegriCloud