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*);
13char* c8_trim(char*);
14
15#endif
int c8_parse_int(const char *)
Parse decimal or hexadecimal integer from s
Definition: util.c:45
char * c8_trim(char *)
Trim leading and trailing whitespace from s
Definition: util.c:80
int c8_hex_to_int(char)
Get the integer value of hexadecimal ASCII representation.
Definition: util.c:22