projects
/
fw
/
pdclib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Intermediate work, checked in for safekeeping as I pick up working on this again.
[fw/pdclib]
/
functions
/
stdio
/
fseek.c
diff --git
a/functions/stdio/fseek.c
b/functions/stdio/fseek.c
index f33f250938a0e1cdaaa7fddbe6f971b2e8d52b3a..ca0017cacfc02f1fbaaf259be15fd0ca90f1c4a1 100644
(file)
--- a/
functions/stdio/fseek.c
+++ b/
functions/stdio/fseek.c
@@
-12,6
+12,10
@@
int fseek( struct _PDCLIB_file_t * stream, long int offset, int whence )
{
+ if ( stream->status & _PDCLIB_WROTELAST )
+ {
+ fflush( stream );
+ }
/* TODO: Implement. */
return 0;
}