some finishing touches to printf

This commit is contained in:
2025-05-30 15:20:02 -04:00
parent 47056f7d9a
commit f8c38d22b0
4 changed files with 316 additions and 110 deletions

View File

@ -1,17 +1,24 @@
#include <stdint.h>
#ifndef _STDLIB_H
#define _STDLIB_H 1
#include <sys/cdefs.h>
#ifdef __cplusplus
extern "C" {
#endif
__attribute__((__noreturn__))
void abort(void);
#ifdef __cplusplus
}
#endif
char* s64toa(int64_t num, char* buf, int base);
char* u64toa(uint64_t num, char* buf, int base);
char* s32toa(int32_t num, char* buf, int base);
char* u32toa(uint32_t num, char* buf, int base);
char* s16toa(int16_t num, char* buf, int base);
char* u16toa(uint16_t num, char* buf, int base);
char* s8toa(int8_t num, char* buf, int base);
char* u8toa(uint8_t num, char* buf, int base);
char* itoa(int num, char* buf, int base);
char* utoa(unsigned int num, char* buf, int base);
#endif