Go to the documentation of this file.
18 #ifndef __LIBC_STRING_H
19 #define __LIBC_STRING_H
40 extern C int strcmp(
const char *dest,
const char *src);
51 extern C int strncmp(
const char *dest,
const char *src,
size_t count);
61 extern C int strcasecmp(
const char *dest,
const char *src);
72 extern C int strncasecmp(
const char *dest,
const char *src,
size_t count);
81 extern C char *
strdup(
const char *str);
104 extern C char *
strndup(
const char *s,
size_t size);
115 extern C void *
memset(
void *dest,
int ch,
size_t count);
126 extern C void *
memcpy(
void *dest,
const void *src,
size_t count);
135 extern C size_t strlen(
const char *str);
145 extern C int strcpy(
char *dest,
const char *src);
156 extern C int strncpy(
char *dest,
const char *src,
size_t sz);
171 extern C size_t strlcpy(
char *dst,
const char *src,
size_t siz);
186 extern C char *
strcat(
char *dest,
const char *src);
205 extern C char *
strncat(
char *dest,
const char *src,
size_t siz);
231 extern C char *
strchr(
const char *s,
int c);
246 extern C char *
strrchr(
const char *s,
int c);
C int strncmp(const char *dest, const char *src, size_t count)
Compare two strings, by only a maximum number of bytes.
C size_t strlcpy(char *dst, const char *src, size_t siz)
Copy src to string dst of size siz.
C size_t strlen(const char *str)
Calculate the length of a string.
C char * strndup(const char *s, size_t size)
Duplicate a specific number of bytes from a string.
C char * strrchr(const char *s, int c)
String scanning operation.
C int strcpy(char *dest, const char *src)
Copy a string.
C char * strdup(const char *str)
Duplicate a string.
#define C
Used to define external C functions.
C char * strcat(char *dest, const char *src)
Concatenate two strings.
C int strcmp(const char *dest, const char *src)
Compare two strings.
C char * strerror(int errnum)
The strerror function maps the number in errnum to a message string.
C char * strncat(char *dest, const char *src, size_t siz)
Concatenate a string with part of another.
C void * memset(void *dest, int ch, size_t count)
Fill memory with a constant byte.
C int strcasecmp(const char *dest, const char *src)
Compare two strings, ignoring case considerations.
C void * memcpy(void *dest, const void *src, size_t count)
Copy memory from one place to another.
C int strncpy(char *dest, const char *src, size_t sz)
Copy a string, given a maximum number of bytes.
C char * strchr(const char *s, int c)
String scanning operation.
C int strncasecmp(const char *dest, const char *src, size_t count)
Compare two strings, ignoring case considerations.