LibC: add probably functional *printf

I wrote a general printf function that takes an putc function
pointer. We can use this to implement all the printf family
functions. I haven't done thorough testing with this, but it seems
to be functional for the most part
This commit is contained in:
2023-05-10 02:00:28 +03:00
parent 1cf7ef3de6
commit d5ce4c9d2c
4 changed files with 410 additions and 43 deletions

View File

@@ -5,6 +5,7 @@ project(libc CXX)
set(LIBC_SOURCES
ctype.cpp
fcntl.cpp
printf_impl.cpp
stdio.cpp
stdlib.cpp
string.cpp