libc8
CHIP-8 utility library
util.h
Go to the documentation of this file.
1
8#ifndef C8_UTIL_H
9#define C8_UTIL_H
10
11int hex_to_int(char);
12int parse_int(const char *);
13char *trim(char *);
14
15#endif
char * trim(char *)
Trim leading and trailing whitespace from s
Definition: util.c:84
int hex_to_int(char)
Get the integer value of hexadecimal ASCII representation.
Definition: util.c:25
int parse_int(const char *)
Parse decimal or hexadecimal integer from s
Definition: util.c:48