X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2Fstdio%2Ftmpfile.c;h=94351caad147da0ce6bf2c498906f5dd9eeb5fb2;hb=f1719b005f40a423cba1962152e71773d36d1a71;hp=79c9569c50f912b7ae5a6c6530fc3c871c29cf12;hpb=e5112b619d1aae8ffc439389cfcbd3b2b4bd2454;p=pdclib 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 +