view modules/strchrnul @ 9999:5f559abfabef

Add rawmemchr module, matching glibc. * modules/string (Makefile.am): New indicator. * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it. * lib/string.in.h (rawmemchr): Declare when appropriate. * modules/rawmemchr: New file. * m4/rawmemchr.m4: Likewise. * lib/rawmemchr.c: Likewise. * modules/rawmemchr-tests: Likewise. * tests/test-rawmemchr.c: Likewise. * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document module. * modules/strchrnul (Depends-on): Add rawmemchr. * lib/strchrnul.c (strchrnul): Optimize a corner case. Signed-off-by: Eric Blake <ebb9@byu.net>
author Eric Blake <ebb9@byu.net>
date Mon, 28 Apr 2008 17:08:43 -0600
parents 6bc27027a2d6
children c476de4b1672
line wrap: on
line source

Description:
strchrnul() function: Find the first occurrence of C in S or the final NUL
byte.

Files:
lib/strchrnul.c
m4/strchrnul.m4

Depends-on:
extensions
string
rawmemchr

configure.ac:
gl_FUNC_STRCHRNUL
gl_STRING_MODULE_INDICATOR([strchrnul])

Makefile.am:

Include:
<string.h>

License:
LGPL

Maintainer:
FSF