comparison lib/string.in.h @ 11624:82b5a4d577af

docs: memchr is no longer obsolete * MODULES.html.sh: Move memchr from obsolete to string.h section. * lib/string.in.h (memchr): Simplify logic. Signed-off-by: Eric Blake <ebb9@byu.net>
author Eric Blake <ebb9@byu.net>
date Mon, 15 Jun 2009 07:49:35 -0600
parents c98fca1ff8b8
children ff3dd373542b
comparison
equal deleted inserted replaced
11623:4bdaf075d3d9 11624:82b5a4d577af
51 51
52 /* Return the first instance of C within N bytes of S, or NULL. */ 52 /* Return the first instance of C within N bytes of S, or NULL. */
53 #if @GNULIB_MEMCHR@ 53 #if @GNULIB_MEMCHR@
54 # if @REPLACE_MEMCHR@ 54 # if @REPLACE_MEMCHR@
55 # define memchr rpl_memchr 55 # define memchr rpl_memchr
56 # endif
57 # if @REPLACE_MEMCHR@
58 extern void *memchr (void const *__s, int __c, size_t __n) 56 extern void *memchr (void const *__s, int __c, size_t __n)
59 __attribute__ ((__pure__)); 57 __attribute__ ((__pure__));
60 # endif 58 # endif
61 #elif defined GNULIB_POSIXCHECK 59 #elif defined GNULIB_POSIXCHECK
62 # undef memchr 60 # undef memchr