|
ginnOS
The reference: libc, the libraries and the kernel
|
#include "string.h"Functions | |
| size_t | strlen (const char *str) |
| computes the length of the string s. | |
| int | strcmp (const char *lhs, const char *rhs) |
| compares the string s1 to the string s2. | |
| int | strncmp (const char *lhs, const char *rhs, size_t count) |
| compares the first n bytes of the string s1 to the first n bytes of the string s2. | |
| char * | strcpy (char *dest, const char *src) |
| copies the string pointed to by src, including the terminating null byte ('\0'), to the buffer pointed to by dst. | |
| char * | strncpy (char *dest, const char *src, size_t count) |
| copies up to n bytes from the string pointed to by src to the buffer pointed to by dst. | |
| void | string_to_lower (char *str) |
| convert a null terminated string to lowercase in place. | |
| size_t strlen | ( | const char * | s | ) |
computes the length of the string s.
| s | the string to compute the length of. |
| int strcmp | ( | const char * | s1, |
| const char * | s2 ) |
compares the string s1 to the string s2.
| s1 | the first string to compare. |
| s2 | the second string to compare. |
| int strncmp | ( | const char * | s1, |
| const char * | s2, | ||
| size_t | n ) |
compares the first n bytes of the string s1 to the first n bytes of the string s2.
| s1 | the first string to compare. |
| s2 | the second string to compare. |
| n | the number of bytes to compare. |
| char * strcpy | ( | char * | dst, |
| const char * | src ) |
copies the string pointed to by src, including the terminating null byte ('\0'), to the buffer pointed to by dst.
| dst | the destination buffer. |
| src | the source string to copy. |
| char * strncpy | ( | char * | dst, |
| const char * | src, | ||
| size_t | n ) |
copies up to n bytes from the string pointed to by src to the buffer pointed to by dst.
| dst | the destination buffer. |
| src | the source string to copy. |
| n | the maximum number of bytes to copy. |
| void string_to_lower | ( | char * | str | ) |
convert a null terminated string to lowercase in place.
| str | null terminated string to convert. |