libc8
CHIP-8 utility library
Loading...
Searching...
No Matches
util.h
Go to the documentation of this file.
1
8#ifndef C8_UTIL_H
9#define C8_UTIL_H
10
11int c8_hex_to_int(char);
12int c8_parse_int(const char*);
13int c8_to_upper(char*);
14char* c8_trim(char*);
15
16#endif
int c8_parse_int(const char *)
Parse decimal or hexadecimal integer from s
Definition: util.c:45
int c8_to_upper(char *)
Convert all characters in null-terminated string s to uppercase.
Definition: util.c:77
char * c8_trim(char *)
Trim leading and trailing whitespace from s
Definition: util.c:94
int c8_hex_to_int(char)
Get the integer value of hexadecimal ASCII representation.
Definition: util.c:22