Added any files yet missing for stdio.h.
[fw/pdclib] / functions / stdio / fseek.c
diff --git a/functions/stdio/fseek.c b/functions/stdio/fseek.c
new file mode 100644 (file)
index 0000000..f33f250
--- /dev/null
@@ -0,0 +1,30 @@
+/* $Id$ */
+
+/* fseek( FILE *, long int, int )
+
+   This file is part of the Public Domain C Library (PDCLib).
+   Permission is granted to use, modify, and / or redistribute at will.
+*/
+
+#include <stdio.h>
+
+#ifndef REGTEST
+
+int fseek( struct _PDCLIB_file_t * stream, long int offset, int whence )
+{
+    /* TODO: Implement. */
+    return 0;
+}
+
+#endif
+
+#ifdef TEST
+#include <_PDCLIB_test.h>
+
+int main( void )
+{
+    TESTCASE( NO_TESTDRIVER );
+    return TEST_RESULTS;
+}
+
+#endif