X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2Fstdio%2Ftmpnam.c;fp=platform%2Fexample%2Ffunctions%2Fstdio%2Ftmpnam.c;h=0000000000000000000000000000000000000000;hb=251788c85afb1a268ba4248fea1909e8afc46a45;hp=a9f5385c1e0723e45eba248a1e44091a14a3553c;hpb=406e7c85a903d02f8a95f5b6dded5f2267e664ca;p=pdclib.old diff --git a/platform/example/functions/stdio/tmpnam.c b/platform/example/functions/stdio/tmpnam.c deleted file mode 100644 index a9f5385..0000000 --- a/platform/example/functions/stdio/tmpnam.c +++ /dev/null @@ -1,43 +0,0 @@ -/* $Id$ */ - -/* tmpnam( char * ) - - 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 -#include <_PDCLIB_glue.h> - -char * tmpnam( char * s ) -{ - static char filename[ L_tmpnam ]; - FILE * file = tmpfile(); - if ( s == NULL ) - { - s = filename; - } - strcpy( s, file->filename ); - fclose( file ); - return s; -} - -#endif - -#ifdef TEST -#include <_PDCLIB_test.h> - -#include - -int main( void ) -{ - TESTCASE( strlen( tmpnam( NULL ) ) < L_tmpnam ); - return TEST_RESULTS; -} - -#endif -