welibc
A clear, secure, and well documented standard C library
|
Go to the documentation of this file.
50 #define NULL ((void *) 0)
55 memcpy(
void *s1,
const void *s2,
size_t n);
58 memmove(
void *s1,
const void *s2,
size_t n);
61 strcpy(
char *s1,
const char *s2);
64 strncpy(
char *s1,
const char *s2,
size_t n);
68 strcat(
char *s1,
const char *s2);
71 strncat(
char *s1,
const char *s2,
size_t n);
75 memcmp(
const void *s1,
const void *s2,
size_t n);
78 strcmp(
const char *s1,
const char *s2);
81 strncmp(
const char *s1,
const char *s2,
size_t n);
85 memchr(
const void *s,
int c,
size_t n);
88 strchr(
const char *s,
int c);
91 strcspn(
const char *s1,
const char *s2);
94 strpbrk(
const char *s1,
const char *s2);
100 strspn(
const char *s1,
const char *s2);
103 strstr(
const char *s1,
const char *s2);
106 strtok(
char *s1,
const char *s2);
110 memset(
void *s,
int c,
size_t n);
size_t strlen(const char *s)
Computes the length of a string.
char * strcpy(char *s1, const char *s2)
Copies a string with null terminator from s2 into s1.
char * strerror(int errnum)
Maps an error number to an error message string.
int strcmp(const char *s1, const char *s2)
Compares the strings pointed to be s1 and s2.
char * strchr(const char *s, int c)
Locate the first occurrence of a character in a string.
char * strcat(char *s1, const char *s2)
Concatenates two strings.
void * memcpy(void *s1, const void *s2, size_t n)
Copies n characters from s2 into s1.
void * memchr(const void *s, int c, size_t n)
Searches for a given character.
void * memset(void *s, int c, size_t n)
Copies the value c into the first n characters of object s.
void * memmove(void *s1, const void *s2, size_t n)
Copies n characters from s2 into s1.
size_t strcspn(const char *s1, const char *s2)
Find the length of the span of complementary characters to s2 in s1.
char * strncpy(char *s1, const char *s2, size_t n)
Copies no more than n characters with null terminator from s2 to s1.
char * strrchr(const char *s, int c)
Locate the last occurrence of a character in a string.
size_t strspn(const char *s1, const char *s2)
Find the length of the span of characters in s2 in s1.
char * strstr(const char *s1, const char *s2)
Locate the first occurrence of a string in a another string.
char * strncat(char *s1, const char *s2, size_t n)
Concatenates two strings, appending no more than n characters.
char * strpbrk(const char *s1, const char *s2)
Locate the first occurrence of any of s2 in s1.
char * strtok(char *s1, const char *s2)
Breaks a string into a sequence of tokens split on a given delimiter.
int memcmp(const void *s1, const void *s2, size_t n)
Compares the first n characters of s1 and s2.
int strncmp(const char *s1, const char *s2, size_t n)
Compares the strings pointed to be s1 and s2.