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