X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2F_PDCLIB%2Fremove.c;h=184a1f2dcf181209a0e4f80b1f224d12e8db2ae4;hb=f408c1fd633015089d2a0fc6bc31c9f61eeae0a9;hp=609ddbe4b49d70b3a722e29fe6838fb8b73c1cb5;hpb=ddc340b8ebc7da1b3e5083dc2a8542f4a13683f3;p=pdclib diff --git a/platform/example/functions/_PDCLIB/remove.c b/platform/example/functions/_PDCLIB/remove.c index 609ddbe..184a1f2 100644 --- a/platform/example/functions/_PDCLIB/remove.c +++ b/platform/example/functions/_PDCLIB/remove.c @@ -42,9 +42,7 @@ int _PDCLIB_remove( const char * filename ) int main( void ) { - char filename[ L_tmpnam + 6 ] = "touch "; - tmpnam( filename + 6 ); - /* create file */ + char filename[] = "touch testfile"; system( filename ); /* file is actually readable */ TESTCASE( fopen( filename + 6, "r" ) != NULL );