mirror of
https://github.com/libretro/RetroArch
synced 2025-02-19 12:41:00 +00:00
(libretro-common/file_stream) Restore missing filestream_scanf() function
This commit is contained in:
parent
7b020f4cc5
commit
f52fbd32a0
@ -83,6 +83,8 @@ int filestream_getc(RFILE *stream);
|
||||
|
||||
int filestream_vscanf(RFILE *stream, const char* format, va_list *args);
|
||||
|
||||
int filestream_scanf(RFILE *stream, const char* format, ...);
|
||||
|
||||
int filestream_eof(RFILE *stream);
|
||||
|
||||
bool filestream_write_file(const char *path, const void *data, int64_t size);
|
||||
|
@ -339,6 +339,16 @@ int filestream_vscanf(RFILE *stream, const char* format, va_list *args)
|
||||
return ret;
|
||||
}
|
||||
|
||||
int filestream_scanf(RFILE *stream, const char* format, ...)
|
||||
{
|
||||
int result;
|
||||
va_list vl;
|
||||
va_start(vl, format);
|
||||
result = filestream_vscanf(stream, format, &vl);
|
||||
va_end(vl);
|
||||
return result;
|
||||
}
|
||||
|
||||
int64_t filestream_seek(RFILE *stream, int64_t offset, int seek_position)
|
||||
{
|
||||
int64_t output;
|
||||
|
Loading…
x
Reference in New Issue
Block a user