LibC: Implement fscanf
I had missed this when I was implementing *scanf functions
This commit is contained in:
parent
e946b392c9
commit
b56fa4a29d
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue