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" 103 FAR
char *
strdup(FAR
const char *s);
110 FAR
char *
strndup(FAR
const char *s,
size_t size);
124 size_t strlen(FAR
const char *);
131 size_t strnlen(FAR
const char *,
size_t);
138 FAR
char *
strcat(FAR
char *, FAR
const char *);
145 FAR
char *
strncat(FAR
char *, FAR
const char *,
size_t);
152 int strcmp(FAR
const char *, FAR
const char *);
159 int strncmp(FAR
const char *, FAR
const char *,
size_t);
166 int strcasecmp(FAR
const char *, FAR
const char *);
173 int strncasecmp(FAR
const char *, FAR
const char *,
size_t);
180 FAR
char *
strcpy(
char *dest, FAR
const char *src);
187 FAR
char *
stpcpy(
char *dest, FAR
const char *src);
194 FAR
char *
strncpy(
char *, FAR
const char *,
size_t);
201 FAR
char *
strpbrk(FAR
const char *, FAR
const char *);
208 FAR
char *
strchr(FAR
const char *s,
int c);
215 FAR
char *
strrchr(FAR
const char *s,
int c);
222 size_t strspn(FAR
const char *, FAR
const char *);
229 size_t strcspn(FAR
const char *, FAR
const char *);
236 FAR
char *
strstr(FAR
const char *, FAR
const char *);
244 FAR
char *
strcasestr(FAR
const char *, FAR
const char *);
251 FAR
char *
strtok(FAR
char *, FAR
const char *);
258 FAR
char *
strtok_r(FAR
char *, FAR
const char *, FAR
char **);
266 FAR
void *
memchr(FAR
const void *s,
int c,
size_t n);
273 FAR
void *
memccpy(FAR
void *s1, FAR
const void *s2,
int c,
size_t n);
280 int memcmp(FAR
const void *s1, FAR
const void *s2,
size_t n);
287 FAR
void *
memcpy(FAR
void *dest, FAR
const void *src,
size_t n);
294 FAR
void *
memmove(FAR
void *dest, FAR
const void *src,
size_t count);
301 FAR
void *
memset(FAR
void *s,
int c,
size_t n);
312 size_t strlcpy(
char *__restrict dest,
const char *__restrict src,
size_t size);
314 #if defined(__cplusplus) FAR char * strncat(FAR char *, FAR const char *, size_t)
concatenate a string with part of another
size_t strcspn(FAR const char *, FAR const char *)
get the length of a complementary substring
FAR char * strtok(FAR char *, FAR const char *)
split string into tokens
FAR char * strcpy(char *dest, FAR const char *src)
copy a string and return a pointer to the end of the result
int strncasecmp(FAR const char *, FAR const char *, size_t)
case-insensitive string comparisons
FAR void * memchr(FAR const void *s, int c, size_t n)
find byte in memory
FAR char * strncpy(char *, FAR const char *, size_t)
copy fixed length string, returning a pointer to the array end
FAR char * strtok_r(FAR char *, FAR const char *, FAR char **)
split string into tokens
size_t strlen(FAR const char *)
get length of fixed size string
FAR void * memset(FAR void *s, int c, size_t n)
set bytes in memory
FAR void * memccpy(FAR void *s1, FAR const void *s2, int c, size_t n)
copy bytes in memory
size_t strnlen(FAR const char *, size_t)
get length of fixed size string
int strncmp(FAR const char *, FAR const char *, size_t)
compare part of two strings
size_t strspn(FAR const char *, FAR const char *)
get length of a substring
FAR char * strcat(FAR char *, FAR const char *)
concatenate two strings
int strcmp(FAR const char *, FAR const char *)
compare two strings
FAR char * stpcpy(char *dest, FAR const char *src)
copy a string and return a pointer to the end of the result
FAR char * strndup(FAR const char *s, size_t size)
duplicate a specific number of bytes from a string
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 *)
case-insensitive string comparisons
FAR char * strpbrk(FAR const char *, FAR const char *)
scan a string for a byte
FAR char * strstr(FAR const char *, FAR const char *)
find a substring
FAR char * strdup(FAR const char *s)
duplicate a specific number of bytes from a string
FAR char * strrchr(FAR const char *s, int c)
string scanning operation
FAR char * strcasestr(FAR const char *, FAR const char *)
locate a substring
FAR void * memmove(FAR void *dest, FAR const void *src, size_t count)
copy bytes in memory with overlapping areas
FAR void * memcpy(FAR void *dest, FAR const void *src, size_t n)
copy bytes in memory
FAR const char * strerror(int)
get error message string
int memcmp(FAR const void *s1, FAR const void *s2, size_t n)
compare bytes in memory
FAR char * strchr(FAR const char *s, int c)
string scanning operation