mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Reimplement filestream_getc
This commit is contained in:
parent
57b730ab61
commit
dca96ba6ad
1 changed files with 5 additions and 1 deletions
|
@ -337,9 +337,13 @@ char *filestream_gets(RFILE *stream, char *s, size_t len)
|
|||
|
||||
int filestream_getc(RFILE *stream)
|
||||
{
|
||||
char c = 0;
|
||||
(void)c;
|
||||
if (!stream)
|
||||
return 0;
|
||||
return fgetc(stream->fp);
|
||||
if(filestream_read(stream, &c, 1) == 1)
|
||||
return (int)c;
|
||||
return EOF;
|
||||
}
|
||||
|
||||
ssize_t filestream_seek(RFILE *stream, ssize_t offset, int whence)
|
||||
|
|
Loading…
Add table
Reference in a new issue