Collaboration diagram for Strings:
Defines | |
#define | wsize sizeof(word) |
#define | wmask (wsize - 1) |
Typedefs | |
typedef long | word |
Copy a string. | |
typedef unsigned char | u_char |
Functions | |
void * | memchr (CONST void *s, int c, size_t n) |
Locate byte in a memory region. | |
int | memcmp (CONST void *s1, CONST void *s2, size_t n) |
Compare memory regions. | |
void * | memcpy (void *dst0, CONST void *src0, size_t length) |
void * | memset (void *dst, int c, size_t n) |
Fill memory region with a specific byte value. | |
char * | strcat (char *dst, const char *src) |
Concatenate two strings. | |
char * | strchr (const char *p, int ch) |
Locate the first occurrence of a character in a string. | |
int | strcmp (CONST char *s1, CONST char *s2) |
Compare two strings. | |
char * | strcpy (char *dst, CONST char *src) |
Copy a string. | |
char * | strdup (CONST char *str) |
Create a copy of a string. | |
int | stricmp (CONST char *s1, CONST char *s2) |
Compare two strings, ignoring case. | |
int | strnicmp (CONST char *s1, CONST char *s2, size_t n) |
Compare two strings up to a given number of characters and ignoring case. | |
size_t | strlen (CONST char *str) |
Compute the length of a NUL terminated string. | |
char * | strncat (char *dst, CONST char *src, size_t n) |
Concatenate two strings up to a given number of characters. | |
int | strncmp (const char *s1, const char *s2, size_t n) |
Compare two strings up to a given number of characters. | |
char * | strncpy (char *dst, CONST char *src, size_t n) |
Copy a string up to a given number of characters. | |
char * | strrchr (CONST char *p, int ch) |
Locate the last occurrence of a character in a NUL terminated string. | |
char * | strstr (CONST char *s, CONST char *find) |
Locate a substring in a string. | |
char * | strtok (char *s, CONST char *delim) |
Isolate sequential tokens in a NUL terminated string. | |
char * | strtok_r (char *s, const char *delim, char **last) |
Isolate sequential tokens in a NUL terminated string. |
|
Copy a string. Copies a source string including the terminating zero character to a destination string.
|
|
Locate byte in a memory region. This function locates the first occurrence of a byte in a memory region.
|
|
Compare memory regions. Both memory regions are assumed to be of equal length.
|
|
Fill memory region with a specific byte value.
|
|
Concatenate two strings. Append a copy of a NUL terminated string to the end of another NUL terminated string.
|
|
Locate the first occurrence of a character in a string. The terminating NUL character is considered part of the string.
|
|
Compare two strings. The strings are compared lexicographically.
|
|
Copy a string. Copies a source string including the terminating zero character to a destination string.
|
|
Create a copy of a string. Allocates sufficient memory from heap for a copy of the string does the copy.
|
|
Compare two strings, ignoring case. The strings are compared lexicographically. The comparison is done using unsigned characters,
|
|
Compare two strings up to a given number of characters and ignoring case. The strings are compared lexicographically. The comparison is done using unsigned characters,
|
|
Compute the length of a NUL terminated string.
|
|
Concatenate two strings up to a given number of characters. Append a copy of a NUL terminated string to the end of another NUL terminated string. Appends a copy of the source string including the terminating NUL character, if its length is lower than the given number of characters. Otherwise the destination string is left unterminated.
|
|
Compare two strings up to a given number of characters. The strings are compared lexicographically. The comparison is done using unsigned characters,
|
|
Copy a string up to a given number of characters. Copies a source string including the terminating NUL character, if its length is lower than the given number of characters. Otherwise the destination string is left unterminated.
|
|
Locate the last occurrence of a character in a NUL terminated string. The terminating NUL character is considered part of the string.
|
|
Locate a substring in a string. Finds the first occurrence of a NUL terminated string in another NUL terminated string.
|
|
Isolate sequential tokens in a NUL terminated string. The tokens are separated in the string by at least one of the characters in the given separator string. The first time this function is called, the string should be specified. Subsequent calls, wishing to obtain further tokens from the same string, should pass a null pointer instead. The separator string must be supplied each time, and may change between calls.
|
|
Isolate sequential tokens in a NUL terminated string. Similar to strtok(), but takes an explicit context argument and thus is reentrant.
|