diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-07-28 20:45:29 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-07-28 20:45:29 +0000 |
commit | 1b7083741156135bda19e10271ff8a9cad8bb0f9 (patch) | |
tree | 2ce4196e20756f161ca99bf3fad970e76ee1b001 /nuttx/include | |
parent | 10364c669f75885fccf912b695a221a51a0f69e5 (diff) | |
download | px4-firmware-1b7083741156135bda19e10271ff8a9cad8bb0f9.tar.gz px4-firmware-1b7083741156135bda19e10271ff8a9cad8bb0f9.tar.bz2 px4-firmware-1b7083741156135bda19e10271ff8a9cad8bb0f9.zip |
Add memchr()
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4989 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/string.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/include/string.h b/nuttx/include/string.h index 1c6f5c964..5fe394483 100644 --- a/nuttx/include/string.h +++ b/nuttx/include/string.h @@ -82,8 +82,8 @@ EXTERN int strncasecmp(FAR const char *, FAR const char *, size_t); EXTERN FAR char *strcpy(char *dest, FAR const char *src); EXTERN FAR char *strncpy(char *, FAR const char *, size_t); EXTERN FAR char *strpbrk(FAR const char *, FAR const char *); -EXTERN FAR char *strchr(FAR const char *, int); -EXTERN FAR char *strrchr(FAR const char *, int); +EXTERN FAR char *strchr(FAR const char *s, int c); +EXTERN FAR char *strrchr(FAR const char *s, int c); EXTERN size_t strspn(FAR const char *, FAR const char *); EXTERN size_t strcspn(FAR const char *, FAR const char *); EXTERN FAR char *strstr(FAR const char *, FAR const char *); @@ -91,6 +91,7 @@ EXTERN FAR char *strcasestr(FAR const char *, FAR const char *); EXTERN FAR char *strtok(FAR char *, FAR const char *); EXTERN FAR char *strtok_r(FAR char *, FAR const char *, FAR char **); +EXTERN FAR void *memchr(FAR const void *s, int c, size_t n); EXTERN FAR void *memset(FAR void *s, int c, size_t n); EXTERN FAR void *memcpy(FAR void *dest, FAR const void *src, size_t n); EXTERN int memcmp(FAR const void *s1, FAR const void *s2, size_t n); |