about summary refs log tree commit diff
path: root/libio/clearerr.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/clearerr.c')
-rw-r--r--libio/clearerr.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libio/clearerr.c b/libio/clearerr.c
new file mode 100644
index 0000000000..ee9780bdaf
--- /dev/null
+++ b/libio/clearerr.c
@@ -0,0 +1,10 @@
+#include "libioP.h"
+#include "stdio.h"
+
+void
+clearerr(fp)
+     FILE* fp;
+{
+  CHECK_FILE(fp, /*nothing*/);
+  _IO_clearerr(fp);
+}