SSBM Decomp
|
#include <MSL/ctype.h>
#include <MSL/errno.h>
#include <MSL/limits.h>
#include <MSL/scanf.h>
#include <MSL/string.h>
#include <MSL/strtoul.h>
Macros | |
#define | final_state(scan_state) (scan_state & (finished | failure)) |
#define | success(scan_state) (scan_state & (leading_zero | digit_loop | finished)) |
#define | fetch() (count++, (*ReadProc)(ReadProcArg, 0, __GetAChar)) |
#define | unfetch(c) (*ReadProc)(ReadProcArg, c, __UngetAChar) |
Enumerations | |
enum | scan_states { start = 0x01 , check_for_zero = 0x02 , leading_zero = 0x04 , need_digit = 0x08 , digit_loop = 0x10 , finished = 0x20 , failure = 0x40 } |
Functions | |
unsigned long | strtoul (const char *str, char **end, int base) |
unsigned long | __strtoul (int base, int max_width, int(*ReadProc)(void *, int, int), void *ReadProcArg, int *chars_scanned, int *negative, int *overflow) |
#define success | ( | scan_state | ) | (scan_state & (leading_zero | digit_loop | finished)) |
#define fetch | ( | ) | (count++, (*ReadProc)(ReadProcArg, 0, __GetAChar)) |
#define unfetch | ( | c | ) | (*ReadProc)(ReadProcArg, c, __UngetAChar) |
enum scan_states |
unsigned long strtoul | ( | const char * | str, |
char ** | end, | ||
int | base | ||
) |
unsigned long __strtoul | ( | int | base, |
int | max_width, | ||
int(*)(void *, int, int) | ReadProc, | ||
void * | ReadProcArg, | ||
int * | chars_scanned, | ||
int * | negative, | ||
int * | overflow | ||
) |