Stub out most of stdio on AltOS
[fw/pdclib] / platform / altos / functions / _PDCLIB / prepwrite.c
diff --git a/platform/altos/functions/_PDCLIB/prepwrite.c b/platform/altos/functions/_PDCLIB/prepwrite.c
new file mode 100644 (file)
index 0000000..fda144a
--- /dev/null
@@ -0,0 +1,28 @@
+/* $Id$ */
+
+/* _PDCLIB_prepwrite( struct _PDCLIB_file_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>
+
+extern int PDCLIB_NO_ACTUAL_STDIO();
+
+int _PDCLIB_prepwrite( struct _PDCLIB_file_t * stream )
+{
+       return PDCLIB_NO_ACTUAL_STDIO();
+}
+
+#ifdef TEST
+#include <_PDCLIB_test.h>
+
+int main( void )
+{
+    /* Testing covered by ftell.c */
+    return TEST_RESULTS;
+}
+
+#endif
+