crp files, unique process names
Lew Mullen
lew at t4test.UUCP
Fri Aug 31 02:13:55 AEST 1984
--- 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);
}
More information about the Comp.os.eunice
mailing list