LibC: Implement fscanf

I had missed this when I was implementing *scanf functions
This commit is contained in:
Bananymous 2024-02-14 03:44:53 +02:00
parent e946b392c9
commit b56fa4a29d
1 changed files with 8 additions and 2 deletions

View File

@ -282,8 +282,14 @@ size_t fread(void* buffer, size_t size, size_t nitems, FILE* file)
// TODO // TODO
FILE* freopen(const char*, const char*, FILE*); FILE* freopen(const char*, const char*, FILE*);
// TODO int fscanf(FILE* file, const char* format, ...)
int fscanf(FILE*, const char*, ...); {
va_list arguments;
va_start(arguments, format);
int ret = vfscanf(file, format, arguments);
va_end(arguments);
return ret;
}
int fseek(FILE* file, long offset, int whence) int fseek(FILE* file, long offset, int whence)
{ {