63 #ifndef __INCLUDE_STRING_H 64 #define __INCLUDE_STRING_H 70 #include <tinyara/config.h> 79 #ifndef CONFIG_ARCH_BZERO 80 #define bzero(s, n) (void)memset(s, 0, n) 83 #define bcopy(b1, b2, len) (void)memmove(b2, b1, len) 90 #if defined(__cplusplus) 91 #define EXTERN extern "C" 101 FAR
char *
strdup(FAR
const char *s);
106 FAR
char *
strndup(FAR
const char *s,
size_t size);
116 size_t strlen(FAR
const char *);
121 size_t strnlen(FAR
const char *,
size_t);
126 FAR
char *
strcat(FAR
char *, FAR
const char *);
131 FAR
char *
strncat(FAR
char *, FAR
const char *,
size_t);
136 int strcmp(FAR
const char *, FAR
const char *);
141 int strncmp(FAR
const char *, FAR
const char *,
size_t);
146 int strcasecmp(FAR
const char *, FAR
const char *);
151 int strncasecmp(FAR
const char *, FAR
const char *,
size_t);
156 FAR
char *
strcpy(
char *dest, FAR
const char *src);
161 FAR
char *
stpcpy(
char *dest, FAR
const char *src);
166 FAR
char *
strncpy(
char *, FAR
const char *,
size_t);
171 FAR
char *
strpbrk(FAR
const char *, FAR
const char *);
176 FAR
char *
strchr(FAR
const char *s,
int c);
181 FAR
char *
strrchr(FAR
const char *s,
int c);
186 size_t strspn(FAR
const char *, FAR
const char *);
191 size_t strcspn(FAR
const char *, FAR
const char *);
196 FAR
char *
strstr(FAR
const char *, FAR
const char *);
201 FAR
char *
strcasestr(FAR
const char *, FAR
const char *);
206 FAR
char *
strtok(FAR
char *, FAR
const char *);
211 FAR
char *
strtok_r(FAR
char *, FAR
const char *, FAR
char **);
217 FAR
void *
memchr(FAR
const void *s,
int c,
size_t n);
222 FAR
void *
memccpy(FAR
void *s1, FAR
const void *s2,
int c,
size_t n);
227 int memcmp(FAR
const void *s1, FAR
const void *s2,
size_t n);
232 FAR
void *
memcpy(FAR
void *dest, FAR
const void *src,
size_t n);
237 FAR
void *
memmove(FAR
void *dest, FAR
const void *src,
size_t count);
242 FAR
void *
memset(FAR
void *s,
int c,
size_t n);
252 size_t strlcpy(
char *__restrict dest,
const char *__restrict src,
size_t size);
254 #if defined(__cplusplus) FAR char * strncat(FAR char *, FAR const char *, size_t)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
size_t strcspn(FAR const char *, FAR const char *)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
FAR char * strtok(FAR char *, FAR const char *)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
FAR char * strcpy(char *dest, FAR const char *src)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int strncasecmp(FAR const char *, FAR const char *, size_t)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
FAR void * memchr(FAR const void *s, int c, size_t n)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
FAR char * strncpy(char *, FAR const char *, size_t)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
FAR char * strtok_r(FAR char *, FAR const char *, FAR char **)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
size_t strlen(FAR const char *)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
FAR void * memset(FAR void *s, int c, size_t n)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
FAR void * memccpy(FAR void *s1, FAR const void *s2, int c, size_t n)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
size_t strnlen(FAR const char *, size_t)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int strncmp(FAR const char *, FAR const char *, size_t)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
size_t strspn(FAR const char *, FAR const char *)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
FAR char * strcat(FAR char *, FAR const char *)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int strcmp(FAR const char *, FAR const char *)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
FAR char * stpcpy(char *dest, FAR const char *src)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
FAR char * strndup(FAR const char *s, size_t size)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
size_t strlcpy(char *__restrict dest, const char *__restrict src, size_t size)
Copies up to size - 1 characters from the NUL-terminated string src to dst, NUL-terminating the resul...
int strcasecmp(FAR const char *, FAR const char *)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
FAR char * strpbrk(FAR const char *, FAR const char *)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
FAR char * strstr(FAR const char *, FAR const char *)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
FAR char * strdup(FAR const char *s)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
FAR char * strrchr(FAR const char *s, int c)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
FAR char * strcasestr(FAR const char *, FAR const char *)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
FAR void * memmove(FAR void *dest, FAR const void *src, size_t count)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
FAR void * memcpy(FAR void *dest, FAR const void *src, size_t n)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
FAR const char * strerror(int)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int memcmp(FAR const void *s1, FAR const void *s2, size_t n)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
FAR char * strchr(FAR const char *s, int c)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)