]> pd.if.org Git - pdclib.old/blobdiff - platform/example/functions/stdio/tmpfile.c
Bring example platform up to date
[pdclib.old] / platform / example / functions / stdio / tmpfile.c
index 255a35eb75721d58d352cd1279a1dd7f3fdda622..94351caad147da0ce6bf2c498906f5dd9eeb5fb2 100644 (file)
 
 #ifndef REGTEST
 
-struct _PDCLIB_file_t * tmpfile( void )
+#include <errno.h>
+#include <_PDCLIB_glue.h>
+
+/* This is a stub implementation of tmpfile
+*/
+FILE* tmpfile( void )
 {
-    /* TODO: Implement */
+    errno = ENOTSUP;
     return NULL;
 }
 
@@ -20,11 +25,12 @@ struct _PDCLIB_file_t * tmpfile( void )
 
 #ifdef TEST
 #include <_PDCLIB_test.h>
+#include <string.h>
 
-int main()
+int main( void )
 {
-    TESTCASE( NO_TESTDRIVER );
     return TEST_RESULTS;
 }
 
 #endif
+