X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2Fstdio%2Ftmpfile.c;h=9a5a3d70863bb7f46206a039e64cc1e0ea8df372;hb=e1c526e9bad3f6e69391e94059096145390508d3;hp=255a35eb75721d58d352cd1279a1dd7f3fdda622;hpb=393020b6e48719d27699dea6b29e53025bbd5123;p=pdclib diff --git a/platform/example/functions/stdio/tmpfile.c b/platform/example/functions/stdio/tmpfile.c index 255a35e..9a5a3d7 100644 --- a/platform/example/functions/stdio/tmpfile.c +++ b/platform/example/functions/stdio/tmpfile.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /* tmpfile( void ) This file is part of the Public Domain C Library (PDCLib). @@ -10,9 +8,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 +23,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 +