Files
Espresso/include/printf.h

25 lines
576 B
C
Raw Normal View History

2025-05-28 14:41:02 -05:00
#ifndef _PRINTF_H
#define _PRINTF_H
#include <tty.h>
#include <string.h>
#include <vga/vga.h> /* Only for the vga_color enum */
void printwc(const char*, uint8_t);
void printd(const char* str);
void printf(const char*, ...);
void print_int(int32_t value);
2025-10-20 21:57:30 -05:00
void print_lint(int64_t value);
2025-05-28 14:41:02 -05:00
void print_uint(uint32_t value);
2025-10-20 21:57:30 -05:00
void print_luint(uint64_t value);
2025-05-28 14:41:02 -05:00
void print_hex(uint32_t value, int width, bool uppercase);
2025-06-13 18:03:39 -05:00
void print_hex64(uint64_t value, int width, bool uppercase);
2025-05-28 14:41:02 -05:00
void print_double(double value, int precision);
2025-10-20 21:57:30 -05:00
void printf_set_color(uint8_t _color);
2025-05-28 14:41:02 -05:00
#endif