libc: io: implement putchar

This commit is contained in:
2026-07-19 13:28:33 +01:00
parent 5c9ab75dbc
commit 9e20e0032d
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -53,6 +53,7 @@ static inline int putc(int c, FILE *stream)
{
return fputc(c, stream);
}
extern int putchar(int c);
extern char *fgets(char *restrict str, int count, FILE *restrict stream);
extern int fputs(const char *restrict str, FILE *restrict stream);
+6
View File
@@ -0,0 +1,6 @@
#include <stdio.h>
int putchar(int c)
{
return fputc(c, stdout);
}