view modules/strchrnul @ 16388:d0e332889b10

stdnoreturn: new module This implements a replacement for C11's <stdnoreturn.h>. * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn. * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h: * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests: * tests/test-stdnoreturn.c: New files.
author Paul Eggert <eggert@cs.ucla.edu>
date Fri, 24 Feb 2012 13:52:45 -0800
parents 941b55762d4d
children
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
lib/strchrnul.valgrind
m4/strchrnul.m4

Depends-on:
string
extensions
rawmemchr       [test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1]

configure.ac:
gl_FUNC_STRCHRNUL
if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
  AC_LIBOBJ([strchrnul])
  gl_PREREQ_STRCHRNUL
fi
gl_STRING_MODULE_INDICATOR([strchrnul])

Makefile.am:

Include:
<string.h>

License:
LGPLv2+

Maintainer:
Eric Blake, glibc