X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2Fstdio%2Ftmpfile.c;h=78273422d5c831555a6dd3e8e4c4a4d29bc75337;hp=255a35eb75721d58d352cd1279a1dd7f3fdda622;hb=da0f3f353d417fed71f358a48d5d5394145e460d;hpb=393020b6e48719d27699dea6b29e53025bbd5123 diff --git a/platform/example/functions/stdio/tmpfile.c b/platform/example/functions/stdio/tmpfile.c index 255a35e..7827342 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,21 +8,27 @@ #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; } #endif #ifdef TEST -#include <_PDCLIB_test.h> +#include "_PDCLIB_test.h" +#include -int main() +int main( void ) { - TESTCASE( NO_TESTDRIVER ); return TEST_RESULTS; } #endif +