projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
implement the nonstandard GNU function fpurge
[musl]
/
src
/
stdio
/
fpurge.c
diff --git a/src/stdio/fpurge.c
b/src/stdio/fpurge.c
new file mode 100644
(file)
index 0000000..
a9e98e7
--- /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);