]> git.sur5r.net Git - cc65/commitdiff
initial check-in
authorcpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 11 Aug 2000 21:51:03 +0000 (21:51 +0000)
committercpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 11 Aug 2000 21:51:03 +0000 (21:51 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@274 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/common/rewind.c [new file with mode: 0644]

diff --git a/libsrc/common/rewind.c b/libsrc/common/rewind.c
new file mode 100644 (file)
index 0000000..a4935b4
--- /dev/null
@@ -0,0 +1,16 @@
+/*
+ * rewind.c
+ *
+ * Christian Groessler, 07-Aug-2000
+ */
+
+
+#include <stdio.h>
+
+
+void rewind(FILE* f)
+{
+    fseek(f, 0L, SEEK_SET);
+    clearerr(f);
+}
+