X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2Fstdio%2Ftmpfile.c;h=94351caad147da0ce6bf2c498906f5dd9eeb5fb2;hb=af55dc64b9118345203e7ba7bd262e6444573795;hp=2d52f60b38c06e7e57712ea3f7e6949d3fa3650f;hpb=a38d56a6a13dbb89022b5448d2d5247f3f99ea41;p=pdclib.old diff --git a/platform/example/functions/stdio/tmpfile.c b/platform/example/functions/stdio/tmpfile.c index 2d52f60..94351ca 100644 --- a/platform/example/functions/stdio/tmpfile.c +++ b/platform/example/functions/stdio/tmpfile.c @@ -13,14 +13,12 @@ #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 ) +FILE* tmpfile( void ) { errno = ENOTSUP; - return 1; + return NULL; } #endif