X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2F_PDCLIB%2Fremove.c;h=184a1f2dcf181209a0e4f80b1f224d12e8db2ae4;hb=3437c82f9f1d5379fd0c01407ce4601b22dd1937;hp=609ddbe4b49d70b3a722e29fe6838fb8b73c1cb5;hpb=54af5553812be985691b9fb61b8cef1fb220d790;p=pdclib.old 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 );