musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月21日 09:11:41 +0000

AltStyle によって変換されたページ (->オリジナル) /