|
libc8
CHIP-8 utility library
|
Functions | |
| int | c8_hex_to_int (char c) |
| Get the integer value of hexadecimal ASCII representation. | |
| int | c8_parse_int (const char *s) |
Parse decimal or hexadecimal integer from s | |
| char * | c8_trim (char *s) |
Trim leading and trailing whitespace from s | |
Miscellaneous useful functions.
| int c8_hex_to_int | ( | char | c | ) |
Get the integer value of hexadecimal ASCII representation.
| c | the char to convert |
| int c8_parse_int | ( | const char * | s | ) |
Parse decimal or hexadecimal integer from s
Converts string s to an integer. Assumes decimal unless the first character is ‘’$'or'x'`.
| s | The string to convert. |
| char * c8_trim | ( | char * | s | ) |
Trim leading and trailing whitespace from s
Puts a NULL character after the last non-whitespace character and returns a pointer to the first non-whitespace character.
| s | string to trim |
s.