diff options
Diffstat (limited to 'src/stdio/__fpending.c')
-rw-r--r-- | src/stdio/__fpending.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stdio/__fpending.c b/src/stdio/__fpending.c new file mode 100644 index 00000000..a4334e23 --- /dev/null +++ b/src/stdio/__fpending.c @@ -0,0 +1,6 @@ +#include "stdio_impl.h" + +size_t __fpending(FILE *f) +{ + return f->wend ? f->wpos - f->wbase : 0; +} |