X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Ftmpnam.c;h=ad642a040e2c398af0673b7a1b4589ef30d30b42;hb=30ceab9cf835d23e419201fc05a573ef5ed8830e;hp=fe3a75d9f5f54de3d61861f0e1c1a02c206e05e5;hpb=dcc8a8e99f69e090a03b7b868443addbc0817820;p=pdclib.old diff --git a/functions/stdio/tmpnam.c b/functions/stdio/tmpnam.c index fe3a75d..ad642a0 100644 --- a/functions/stdio/tmpnam.c +++ b/functions/stdio/tmpnam.c @@ -6,3 +6,17 @@ // ---------------------------------------------------------------------------- char * tmpnam( char * s ) { /* TODO */ }; + +/* PDPC code - unreviewed +{ + static char buf[] = "ZZZZZZZA.$$$"; + + buf[7]++; + if (s == NULL) + { + return (buf); + } + strcpy(s, buf); + return (s); +} +*/