mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-05 20:39:16 +00:00
feat(userspace/libc): implement getchar() and getc()
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
@ -347,8 +347,16 @@ export size_t fwrite(const void *restrict ptr, size_t size, size_t nitems, FILE
|
||||
return bytes_written / size;
|
||||
}
|
||||
|
||||
export int getc(FILE *);
|
||||
export int getchar(void);
|
||||
export int getc(FILE *stream)
|
||||
{
|
||||
return fgetc(stream);
|
||||
}
|
||||
|
||||
export int getchar(void)
|
||||
{
|
||||
return getc(stdin);
|
||||
}
|
||||
|
||||
export int getc_unlocked(FILE *);
|
||||
export int getchar_unlocked(void);
|
||||
export ssize_t getdelim(char **restrict, size_t *restrict, int, FILE *restrict);
|
||||
|
Reference in New Issue
Block a user