Stub out most of stdio on AltOS
[fw/pdclib] / platform / altos / functions / stdio / fsetpos.c
diff --git a/platform/altos/functions/stdio/fsetpos.c b/platform/altos/functions/stdio/fsetpos.c
new file mode 100644 (file)
index 0000000..23cd844
--- /dev/null
@@ -0,0 +1,31 @@
+/* $Id$ */
+
+/* fsetpos( FILE *, const fpos_t * )
+
+   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 fsetpos( struct _PDCLIB_file_t * stream, const struct _PDCLIB_fpos_t * pos )
+{
+    stream->pos.status = 0;
+    /* TODO: Add mbstate. */
+    return 0;
+}
+
+#endif
+
+#ifdef TEST
+#include <_PDCLIB_test.h>
+
+int main( void )
+{
+    /* fsetpos() tested together with fsetpos(). */
+    return TEST_RESULTS;
+}
+
+#endif