diff options
Diffstat (limited to 'src/stdio')
-rw-r--r-- | src/stdio/fpurge.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/stdio/fpurge.c b/src/stdio/fpurge.c new file mode 100644 index 00000000..a9e98e7b --- /dev/null +++ b/src/stdio/fpurge.c @@ -0,0 +1,11 @@ +#define _GNU_SOURCE +#include "stdio_impl.h" + +int __fpurge(FILE *f) +{ + f->wpos = f->wbase = f->wend = 0; + f->rpos = f->rend = 0; + return 0; +} + +weak_alias(__fpurge, fpurge); |