X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2Fstdio%2Ftmpfile.c;h=3f384e7d6ef44431ebbba5a473feb764e19cafe4;hb=10f020f1a39804bbef8cd1cf35ef7c9a8e75c7d6;hp=79c9569c50f912b7ae5a6c6530fc3c871c29cf12;hpb=e8945ee2684f5c8de0104ea183de2010ae72ffd5;p=pdclib.old diff --git a/platform/example/functions/stdio/tmpfile.c b/platform/example/functions/stdio/tmpfile.c index 79c9569..3f384e7 100644 --- a/platform/example/functions/stdio/tmpfile.c +++ b/platform/example/functions/stdio/tmpfile.c @@ -6,24 +6,33 @@ Permission is granted to use, modify, and / or redistribute at will. */ +#include + #ifndef REGTEST -#include <_PDCLIB_int.h> +#include +#include <_PDCLIB_glue.h> + +extern struct _PDCLIB_file_t * _PDCLIB_filelist; + +/* This is a stub implementation of tmpfile +*/ struct _PDCLIB_file_t * tmpfile( void ) { - /* TODO: Implement */ + errno = ENOTSUP; return NULL; } -#endif REGTEST +#endif #ifdef TEST #include <_PDCLIB_test.h> +#include -int main() +int main( void ) { - TESTCASE( NO_TESTDRIVER ); return TEST_RESULTS; } #endif +