Mario Kart 64
Loading...
Searching...
No Matches
printf.h
Go to the documentation of this file.
1#ifndef _PRINTF_H_
2#define _PRINTF_H_
3#include <stdarg.h>
4
5typedef struct {
6 union {
7 /* 00 */ s64 s64;
12 } value;
13 /* 08 */ char* buff;
14 /* 0c */ s32 part1_len;
16 /* 14 */ s32 part2_len;
18 /* 1c */ s32 part3_len;
20 /* 24 */ s32 precision;
21 /* 28 */ s32 width;
22 /* 2c */ u32 size;
23 /* 30 */ u32 flags;
24 /* 34 */ u8 length;
26
27#define FLAGS_SPACE 1
28#define FLAGS_PLUS 2
29#define FLAGS_MINUS 4
30#define FLAGS_HASH 8
31#define FLAGS_ZERO 16
32s32 _Printf(char* (*prout)(char*, const char*, size_t), char* dst, const char* fmt, va_list args);
33void _Litob(printf_struct* args, u8 type);
34void func_800D8890(printf_struct* args, u8 type);
35void _Ldtob(printf_struct* args, u8 type);
36#endif
signed long long int s64
Definition llconv.c:1
unsigned long long int u64
Definition llconv.c:2
s32 _Printf(char *(*prout)(char *, const char *, size_t), char *dst, const char *fmt, va_list args)
Definition _Printf.c:42
void _Ldtob(printf_struct *args, u8 type)
Definition _Ldtob.c:48
void func_800D8890(printf_struct *args, u8 type)
void _Litob(printf_struct *args, u8 type)
Definition _Litob.c:11
#define va_list
Definition stdarg.h:6
Definition printf.h:5
u32 u32
Definition printf.h:10
s32 part2_len
Definition printf.h:16
u8 length
Definition printf.h:24
f64 f64
Definition printf.h:9
u32 size
Definition printf.h:22
s32 part1_len
Definition printf.h:14
s32 precision
Definition printf.h:20
s32 part3_len
Definition printf.h:18
u16 u16
Definition printf.h:11
s32 num_mid_zeros
Definition printf.h:17
u32 flags
Definition printf.h:23
char * buff
Definition printf.h:13
u64 u64
Definition printf.h:8
s32 num_leading_zeros
Definition printf.h:15
s32 width
Definition printf.h:21
s32 num_trailing_zeros
Definition printf.h:19
s64 s64
Definition printf.h:7
signed int s32
Definition ultratypes.h:15
unsigned int u32
Definition ultratypes.h:16
double f64
Definition ultratypes.h:35
unsigned short int u16
Definition ultratypes.h:14
unsigned char u8
Definition ultratypes.h:12