X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2Fstdio%2Ftmpfile.c;h=94351caad147da0ce6bf2c498906f5dd9eeb5fb2;hb=af55dc64b9118345203e7ba7bd262e6444573795;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..94351ca 100644 --- a/platform/example/functions/stdio/tmpfile.c +++ b/platform/example/functions/stdio/tmpfile.c @@ -6,24 +6,31 @@ Permission is granted to use, modify, and / or redistribute at will. */ +#include + #ifndef REGTEST -#include <_PDCLIB_int.h> -struct _PDCLIB_file_t * tmpfile( void ) +#include +#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 -int main() +int main( void ) { - TESTCASE( NO_TESTDRIVER ); return TEST_RESULTS; } #endif +