MKTEMP(3C) COMMAND REFERENCE MKTEMP(3C) NAME mktemp - make a unique filename SYNOPSIS char *mktemp(template) char *template; DESCRIPTION Mktemp replaces template by a unique filename, and returns the address of the template. The template should look like a filename with six trailing X's, which will be replaced with the current process ID and possibly a unique letter. The uniqueness of the filename is determined by checking to see if the resulting file exists. Therefore, successive calls to mktemp without creating the named file will result in the same name. The unique letter is only supplied if it is required to make a unique filename, and is in the range a-z. If no unique name can be built, a pointer to the string / is returned. SEE ALSO getpid(2). Printed 3/13/89 1
%%index%% na:312,83; sy:395,489; de:884,1001; se:1885,135; %%index%%000000000082