|
GitOS
|
#include <stdarg.h>#include <stddef.h>Go to the source code of this file.
Functions | |
| size_t | strlen (const char *str) |
| Determine the length of a string. | |
| size_t | strnlen (const char *str, size_t max_len) |
| Determine the length of a fixed-size string. | |
| char * | strcpy (char *dest, const char *src) |
| Copies string. | |
| char * | strncpy (char *dest, const char *src, int n) |
| Copies string with maximum length. | |
| char * | strrev (char *str) |
| Reverses string. | |
| int | strncmp (const char *str1, const char *str2, int n) |
| Compares two strings with maximum length. | |
| int | strcmp (const char *str1, const char *str2) |
| Compares two strings. | |
| int | strnlen_terminator (const char *str, int max, char terminator) |
| Calculates string length with custom terminator. | |
| int | istrncmp (const char *str1, const char *str2, int n) |
| char | tolower (char c) |
| Converts ASCII letter to lowercase. | |
| char * | itoa (long num, char *str, int base) |
| Converts signed number to string. | |
| char * | uitoa (unsigned long num, char *str, int base) |
| Converts unsigned number to string. | |
| char * | ksprintf (char *buf, const char *fmt,...) |
| Kernel sprintf params: %% c s p l(mod) d i x. | |
| char * | kvsprintf (char *buf, const char *fmt, va_list args) |
| Kernel vsprintf params: %% c s p l(mod) d i x. | |
| int | is_digit (char c) |
| Determines if given char is an ASCII digit. | |
| int | to_numeric_digit (char c) |
| Converts ASCII digit to numeric. | |
| int is_digit | ( | char | c | ) |
Determines if given char is an ASCII digit.
| c | Character to test |
| int istrncmp | ( | const char * | str1, |
| const char * | str2, | ||
| int | n ) |
References tolower().
| char * itoa | ( | long | num, |
| char * | str, | ||
| int | base ) |
Converts signed number to string.
| num | Long to convert |
| str | Buffer |
| base | Base to use when converting the number |
| char * ksprintf | ( | char * | buf, |
| const char * | fmt, | ||
| ... ) |
Kernel sprintf params: %% c s p l(mod) d i x.
| buf | Buffer |
| fmt | Text to format |
| ... | Args |
References kvsprintf().
| char * kvsprintf | ( | char * | buf, |
| const char * | fmt, | ||
| va_list | args ) |
| int strcmp | ( | const char * | str1, |
| const char * | str2 ) |
Compares two strings.
| str1 | String |
| str2 | String |
| char * strcpy | ( | char * | dest, |
| const char * | src ) |
Copies string.
| dest | Destination buffer |
| src | Input buffer |
| size_t strlen | ( | const char * | str | ) |
Determine the length of a string.
| str | String |
| int strncmp | ( | const char * | str1, |
| const char * | str2, | ||
| int | n ) |
Compares two strings with maximum length.
| str1 | String |
| str2 | String |
| n | Max length |
| char * strncpy | ( | char * | dest, |
| const char * | src, | ||
| int | n ) |
Copies string with maximum length.
| dest | Destination buffer |
| src | Input buffer |
| n | Max length |
| size_t strnlen | ( | const char * | str, |
| size_t | max_len ) |
Determine the length of a fixed-size string.
| str | |
| max_len |
| int strnlen_terminator | ( | const char * | str, |
| int | max, | ||
| char | terminator ) |
Calculates string length with custom terminator.
| str | String to measure length |
| max | Max length of string |
| terminator | Custom terminator |
| char * strrev | ( | char * | str | ) |
Reverses string.
| str | String to reverse |
| int to_numeric_digit | ( | char | c | ) |
Converts ASCII digit to numeric.
| c | ASCII digit |
| char tolower | ( | char | c | ) |
Converts ASCII letter to lowercase.
| c | Input letter |
| char * uitoa | ( | unsigned long | num, |
| char * | str, | ||
| int | base ) |
Converts unsigned number to string.
| num | Unsigned Long to convert |
| str | Buffer |
| base | Base to use when converting the number |