mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-18 02:50:09 +00:00
fbda91b119
1999-10-04 Ulrich Drepper <drepper@cygnus.com> * include/string.h: Add __memrchr declaration. * string/string.h: Moce __memrchr declaration to include/string.h. 1999-10-03 Ulrich Drepper <drepper@cygnus.com> * string/Makefile (routines): Add memrchr. * sysdeps/generic/memrchr.c: Don't undef memchr, undef memrchr. Correct order of tests for matching bytes. * string/tester.c: Add tests for memrchr. * sysdeps/i386/i486/bits/string.h (__memrchr): Correct implementation. Start from the last character and take decrement not increment into account for correction in return line. Add memrchr alias. * sysdeps/i386/bits/string.h: Likewise.
26 lines
787 B
C
26 lines
787 B
C
#ifndef _STRING_H
|
|
#include <string/string.h>
|
|
|
|
/* Now define the internal interfaces. */
|
|
extern __ptr_t __memccpy __P ((__ptr_t __dest, __const __ptr_t __src,
|
|
int __c, size_t __n));
|
|
|
|
extern size_t __strnlen __P ((__const char *__string, size_t __maxlen));
|
|
|
|
extern char *__strsep __P ((char **__stringp, __const char *__delim));
|
|
|
|
extern int __strverscmp __P ((__const char *__s1, __const char *__s2));
|
|
|
|
extern int __strncasecmp __P ((__const char *__s1, __const char *__s2,
|
|
size_t __n));
|
|
|
|
extern char *__strndup __P ((__const char *__string, size_t __n));
|
|
|
|
extern __ptr_t __rawmemchr __P ((__const __ptr_t __s, int __c));
|
|
|
|
extern char *__strchrnul __P ((__const char *__s, int __c));
|
|
|
|
extern __ptr_t __memrchr __P ((__const __ptr_t __s, int __c, size_t __n));
|
|
|
|
#endif
|