GitOS
Operating system exercise
|
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 * | strrev (char *str) |
Reverses string. | |
char * | strcpy (char *dest, const char *src) |
Copies string. | |
char * | strncpy (char *dest, const char *src, int n) |
Copies string with maximum length. | |
int | strncmp (const char *str1, const char *str2, int n) |
Compares two strings with maximum length. | |
char | tolower (char c) |
Converts ASCII letter to lowercase. | |
int | istrncmp (const char *str1, const char *str2, int n) |
int | strnlen_terminator (const char *str, int max, char terminator) |
Calculates string length with custom terminator. | |
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 * | kvsprintf (char *buf, const char *fmt, va_list args) |
Kernel vsprintf params: %% c s p l(mod) d i x. | |
char * | ksprintf (char *buf, const char *fmt,...) |
Kernel sprintf 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 | strcmp (const char *str1, const char *str2) |
Compares two strings. | |
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 | ||
) |
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 | ||
) |
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 | ) |
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 |