48 inline void set_base (
int b)
60 inline stream& operator <<(
unsigned long i)
62 _printf_putl(i, base, 0, 0,
' ', PRINTF_NOT_MEMORY);
66 inline stream& operator <<(
unsigned u)
68 _printf_putl(u, base, 0, 0,
' ', PRINTF_NOT_MEMORY);
72 inline stream& operator <<(
unsigned char u)
74 _printf_putl(u, base, 0, 0,
' ', PRINTF_NOT_MEMORY);
78 inline stream& operator <<(
unsigned long long u)
80 _printf_putll(u, base, 0, 0,
' ', PRINTF_NOT_MEMORY);
84 inline stream& operator <<(
long long i)
86 _printf_putll(i, base, 1, 0,
' ', PRINTF_NOT_MEMORY);
90 inline stream& operator <<(
char c)
96 inline stream& operator <<(
const char* s)
102 inline stream& operator <<(
char* s)
104 putstr((
const char*)s);
108 template <
typename T>
inline stream& operator <<(T i)
110 _printf_putl(i, base, 1, 0,
' ', PRINTF_NOT_MEMORY);
114 inline stream& operator <<(fmtflags f)
128 inline stream& operator >>(
unsigned long& i)
130 i = getfnum(base, 0, 80);
134 inline stream& operator >>(
unsigned& u)
136 u = getlfnum(base, 0, 80);
140 inline stream& operator >>(
unsigned char& u)
142 u = getlfnum(base, 0, 80);
146 inline stream& operator >>(
unsigned long long& u)
148 u = getlfnum(base, 0, 80);
152 inline stream& operator >>(
long long& i)
154 i = getlfnum(base, 1, 80);
158 inline stream& operator >>(
char& c)
164 inline stream& operator >>(
char* s)
170 template <
typename T>
inline stream& operator >>(T& i)
172 i = getfnum(base, 1, 80);
176 inline stream& operator >>(fmtflags f)
191 const char endl =
'\n';