added memrchr to string.h, guarded by __USE_GNU. Also guards strchrnul.

Original patch by Dario Casalinuovo.
BUG: Ticket #8265
This commit is contained in:
Jérôme Duval 2012-01-05 00:03:08 +01:00
parent d390c06551
commit 90b92dab5c

View File

@ -22,6 +22,10 @@ extern void *memccpy(void *dest, const void *source, int stopByte, size_t lengt
extern void *memmove(void *dest, const void *source, size_t length);
extern void *memset(void *dest, int value, size_t length);
#ifdef __USE_GNU
extern void *memrchr(const void *source, int value, size_t length);
#endif
/* string functions */
extern char *strcpy(char *dest, const char *source);
extern char *strncpy(char *dest, const char *source, size_t length);
@ -36,8 +40,9 @@ extern char *strchr(const char *string, int character);
extern char *strrchr(const char *string, int character);
extern char *strstr(const char *string, const char *searchString);
#ifdef __USE_GNU
extern char *strchrnul(const char *string, int character);
/* this is a GNU extension */
#endif
extern char *strpbrk(const char *string, const char *set);
extern char *strtok(char *string, const char *set);