1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- #pragma once
- #define PAD_ZERO 1
- #define LEFT 2
- #define RIGHT 4
- #define PLUS 8
- #define SPACE 16
- #define SPECIAL 32
- #define SMALL 64
- #define SIGN 128
- #define is_digit(c) ((c) >= '0' && (c) <= '9')
- #include "font.h"
- #include "glib.h"
- #include <stdarg.h>
- struct screen_info
- {
- int width, height;
- int x, y;
- int char_size_x, char_size_y;
- unsigned int *FB_address;
- unsigned long FB_length;
- } pos;
- extern unsigned char font_ascii[256][16];
- char buf[4096];
- static int vsprintf(char *buf, const char *fmt, va_list args);
- static void write_num(char* str, long long num, int base, int field_width, int precision, int flags);
|