#include <klibc/stdio.h>
#include <klibc/stdlib.h>
#include <klibc/string.h>
-#include <stdint.h>
+#include <lunaix/types.h>
#define NUMBUFSIZ 24
// Of course, with some modifications for porting to LunaixOS :)
char numbuf[NUMBUFSIZ];
- uint32_t ptr = 0;
+ u32_t ptr = 0;
for (; *fmt; ++fmt) {
if (max_len && ptr >= max_len - 1) {
break;
: va_arg(vargs, unsigned);
flags |= FLAG_NUMERIC;
break;
+ case 'b':
+ base = 2;
+ goto format_unsigned;
case 'x':
base = 16;
goto format_unsigned;