X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2Fstdio%2Ftmpfile.c;h=78273422d5c831555a6dd3e8e4c4a4d29bc75337;hp=79c9569c50f912b7ae5a6c6530fc3c871c29cf12;hb=da0f3f353d417fed71f358a48d5d5394145e460d;hpb=e5112b619d1aae8ffc439389cfcbd3b2b4bd2454 diff --git a/platform/example/functions/stdio/tmpfile.c b/platform/example/functions/stdio/tmpfile.c index 79c9569..7827342 100644 --- a/platform/example/functions/stdio/tmpfile.c +++ b/platform/example/functions/stdio/tmpfile.c @@ -1,29 +1,34 @@ -/* $Id$ */ - /* tmpfile( void ) This file is part of the Public Domain C Library (PDCLib). 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 "_PDCLIB_test.h" +#include -int main() +int main( void ) { - TESTCASE( NO_TESTDRIVER ); return TEST_RESULTS; } #endif +