]> pd.if.org Git - pdclib/blobdiff - platform/example/functions/stdio/tmpfile.c
PDCLib includes with quotes, not <>.
[pdclib] / platform / example / functions / stdio / tmpfile.c
index 79c9569c50f912b7ae5a6c6530fc3c871c29cf12..78273422d5c831555a6dd3e8e4c4a4d29bc75337 100644 (file)
@@ -1,29 +1,34 @@
-/* $Id$ */
-
 /* tmpfile( void )
 
    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
-#include <_PDCLIB_int.h>
 
-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;
 }
 
-#endif REGTEST
+#endif
 
 #ifdef TEST
-#include <_PDCLIB_test.h>
+#include "_PDCLIB_test.h"
+#include <string.h>
 
-int main()
+int main( void )
 {
-    TESTCASE( NO_TESTDRIVER );
     return TEST_RESULTS;
 }
 
 #endif
+