X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2Fstdio%2Ftmpfile.c;h=c3bbab05307859e52c971cb412146e7589e7ec71;hb=0cd903b82201176f3148f6d18d68fd30b82746d5;hp=b2c099b0c580d6b6d8cf552ad23349e0aceb1f85;hpb=8f26ee1005f7caf1f8b53935e3222c1c58d7c8fe;p=pdclib diff --git a/platform/example/functions/stdio/tmpfile.c b/platform/example/functions/stdio/tmpfile.c index b2c099b..c3bbab0 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). @@ -91,11 +89,13 @@ struct _PDCLIB_file_t * tmpfile( void ) #include <_PDCLIB_test.h> #include -int main() +int main( void ) { FILE * fh; +#ifndef REGTEST char filename[ L_tmpnam ]; FILE * fhtest; +#endif TESTCASE( ( fh = tmpfile() ) != NULL ); TESTCASE( fputc( 'x', fh ) == 'x' ); /* Checking that file is actually there */