lew@t4test.UUCP (Lew Mullen) (08/30/84)
--- REFERENCED ARTICLE --------------------------------------------- >Has anyone else had files named "crp" show up in your directories? > ..... >has anyone figured out how to create unique process name related >files for files that stay around after a process "dies." In -------------------------------------------------------------------- crp files are, of course, junk from "awk" ... leftover debug code ? volume one, section 3 has a call "mktemp()" to do this. Chip Rosenthal wrote this to make it available from shell: /* * mktemp: return a unique file name * example: set tempfile=`mktemp /tmp/foo` */ main(argc,argv) int argc; char argv; { char buf[64]; strcpy(buf,argv[1]); strcat(buf,"XXXXXX"); mktemp(buf); puts(buf); }