X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2Fstdio%2Ftmpfile.c;h=94351caad147da0ce6bf2c498906f5dd9eeb5fb2;hb=af55dc64b9118345203e7ba7bd262e6444573795;hp=255a35eb75721d58d352cd1279a1dd7f3fdda622;hpb=0d54a75af25ca44411e7c4190cc2a93a390e61a2;p=pdclib.old diff --git a/platform/example/functions/stdio/tmpfile.c b/platform/example/functions/stdio/tmpfile.c index 255a35e..94351ca 100644 --- a/platform/example/functions/stdio/tmpfile.c +++ b/platform/example/functions/stdio/tmpfile.c @@ -10,9 +10,14 @@ #ifndef REGTEST -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; } @@ -20,11 +25,12 @@ struct _PDCLIB_file_t * tmpfile( void ) #ifdef TEST #include <_PDCLIB_test.h> +#include -int main() +int main( void ) { - TESTCASE( NO_TESTDRIVER ); return TEST_RESULTS; } #endif +