From d6a3b84948391f622ca6c29d7e33e307145a1d5f Mon Sep 17 00:00:00 2001 From: cpg Date: Fri, 11 Aug 2000 21:51:03 +0000 Subject: [PATCH] initial check-in git-svn-id: svn://svn.cc65.org/cc65/trunk@274 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/common/rewind.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 libsrc/common/rewind.c diff --git a/libsrc/common/rewind.c b/libsrc/common/rewind.c new file mode 100644 index 000000000..a4935b4a0 --- /dev/null +++ b/libsrc/common/rewind.c @@ -0,0 +1,16 @@ +/* + * rewind.c + * + * Christian Groessler, 07-Aug-2000 + */ + + +#include + + +void rewind(FILE* f) +{ + fseek(f, 0L, SEEK_SET); + clearerr(f); +} + -- 2.39.5