SSBM Decomp
Loading...
Searching...
No Matches
strtoul.c File Reference
#include "strtoul.h"
#include "ctype.h"
#include "errno.h"
#include "limits.h"
#include "stdio.h"
#include "stdlib.h"

Macros

#define final_state(scan_state)
#define success(scan_state)
#define fetch()
#define unfetch(c)

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 (int base, int max_width, int(*ReadProc)(void *, int, int), void *ReadProcArg, int *chars_scanned, int *negative, int *overflow)
unsigned long strtoul (const char *str, char **end, int base)
long strtol (const char *str, char **end, int base)
int atoi (const char *str)

Macro Definition Documentation

◆ final_state

#define final_state ( scan_state)
Value:
(scan_state & (finished | failure))
@ failure
Definition strtoul.c:16
@ finished
Definition strtoul.c:15

◆ success

#define success ( scan_state)
Value:
(scan_state & (leading_zero | digit_loop | finished))
@ leading_zero
Definition strtoul.c:12
@ digit_loop
Definition strtoul.c:14

◆ fetch

#define fetch ( )
Value:
(count++, (*ReadProc)(ReadProcArg, 0, __GetAChar))
@ __GetAChar
Definition stdio.h:112

◆ unfetch

#define unfetch ( c)
Value:
(*ReadProc)(ReadProcArg, c, __UngetAChar)
@ __UngetAChar
Definition stdio.h:113
int c
Definition tev.c:12

Enumeration Type Documentation

◆ scan_states

Enumerator
start 
check_for_zero 
leading_zero 
need_digit 
digit_loop 
finished 
failure 

Function Documentation

◆ __strtoul()

unsigned long __strtoul ( int base,
int max_width,
int(* ReadProc )(void *, int, int),
void * ReadProcArg,
int * chars_scanned,
int * negative,
int * overflow )

◆ strtoul()

unsigned long strtoul ( const char * str,
char ** end,
int base )

◆ strtol()

long strtol ( const char * str,
char ** end,
int base )

◆ atoi()

int atoi ( const char * str)