Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
printf.c File Reference

Classes

struct  print_format
 

Typedefs

typedef PTRDIFF ptrdiff_t
 

Enumerations

enum  justification_options { left_justification , right_justification , zero_fill }
 
enum  sign_options { only_minus , sign_always , space_holder }
 
enum  argument_options {
  normal_argument , char_argument , short_argument , long_argument ,
  long_long_argument , long_double_argument , wchar_argument
}
 

Functions

static const charparse_format (const char *format_string, va_list *arg, print_format *format)
 
static charlong2str (signed long num, char *buff, print_format format)
 
static charlonglong2str (signed long long num, char *pBuf, print_format fmt)
 
static chardouble2hex (long double num, char *buff, print_format format)
 
static void round_decimal (decimal *dec, int new_length)
 
static charfloat2str (long double num, char *buff, print_format format)
 
static int __pformatter (void *(*WriteProc)(void *, const char *, size_t), void *WriteProcArg, const char *format_str, va_list arg)
 
static void__FileWrite (void *pFile, const char *pBuffer, size_t char_num)
 
static void__StringWrite (void *pCtrl, const char *pBuffer, size_t char_num)
 
int printf (const char *format,...)
 
int fprintf (FILE *file, const char *format,...)
 
int vprintf (const char *format, va_list arg)
 
int vsnprintf (char *s, size_t n, const char *format, va_list arg)
 
int snprintf (char *s, size_t n, const char *format,...)
 
int sprintf (char *s, const char *format,...)
 

Typedef Documentation

◆ ptrdiff_t

Enumeration Type Documentation

◆ argument_options

Enumerator
normal_argument 
char_argument 
short_argument 
long_argument 
long_long_argument 
long_double_argument 
wchar_argument 

◆ justification_options

Enumerator
left_justification 
right_justification 
zero_fill 

◆ sign_options

Enumerator
only_minus 
sign_always 
space_holder 

Function Documentation

◆ __FileWrite()

static void * __FileWrite ( void pFile,
const char pBuffer,
size_t  char_num 
)
static

◆ __pformatter()

static int __pformatter ( void *(*)(void *, const char *, size_t WriteProc,
void WriteProcArg,
const char format_str,
va_list  arg 
)
static

◆ __StringWrite()

static void * __StringWrite ( void pCtrl,
const char pBuffer,
size_t  char_num 
)
static

◆ double2hex()

static char * double2hex ( long double  num,
char buff,
print_format  format 
)
static

◆ float2str()

static char * float2str ( long double  num,
char buff,
print_format  format 
)
static

◆ fprintf()

int fprintf ( FILE file,
const char format,
  ... 
)

◆ long2str()

static char * long2str ( signed long  num,
char buff,
print_format  format 
)
static

◆ longlong2str()

static char * longlong2str ( signed long long  num,
char pBuf,
print_format  fmt 
)
static

◆ parse_format()

static const char * parse_format ( const char format_string,
va_list arg,
print_format format 
)
static

◆ printf()

int printf ( const char format,
  ... 
)

◆ round_decimal()

static void round_decimal ( decimal dec,
int  new_length 
)
static

◆ snprintf()

int snprintf ( char s,
size_t  n,
const char format,
  ... 
)

◆ sprintf()

int sprintf ( char s,
const char format,
  ... 
)

◆ vprintf()

int vprintf ( const char format,
va_list  arg 
)

◆ vsnprintf()

int vsnprintf ( char s,
size_t  n,
const char format,
va_list  arg 
)