Mercurial > hg > octave-nkf > gnulib-hg
diff modules/rawmemchr @ 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 (2008-04-28) |
parents | |
children | c476de4b1672 |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/modules/rawmemchr @@ -0,0 +1,25 @@ +Description: +rawmemchr() function: Find the first occurrence of C in S. + +Files: +lib/rawmemchr.c +m4/rawmemchr.m4 + +Depends-on: +extensions +string + +configure.ac: +gl_FUNC_RAWMEMCHR +gl_STRING_MODULE_INDICATOR([rawmemchr]) + +Makefile.am: + +Include: +<string.h> + +License: +LGPL + +Maintainer: +FSF