2 * tmpfile -- open an unnamed temporary file
4 * This is the ANSI C standard routine; we have hacks here because many
5 * compilers/systems do not have it yet.
21 char *filename
, *junk
;
23 junk
= strsav((char *)"/usr/tmp/cudd-XXXXXX");
24 filename
= mktemp(junk
);
25 if ((fp
= fopen(filename
, "w+")) == NULL
) {
29 (void) unlink(filename
);
39 return fopen("utiltmp", "w+");