

mktemp()                 General Function                mktemp()




Generate a temporary file name

cchhaarr *mmkktteemmpp(_p_a_t_t_e_r_n) cchhaarr *_p_a_t_t_e_r_n;

mktemp generates  a unique  file name.  It  can be used,  for ex-
ample, to name  intermediate data files.  pattern must consist of
a string with six X's at the end.  mktemp replaces these X's with
the five-digit process id  of the requesting process and a letter
that is  changed for each  subsequent call.  mktemp  returns pat-
tern.   For example,  the  call mmkktteemmpp("/ttmmpp/ssoorrttXXXXXXXXXXXX");  might
return the name  /ttmmpp/ssoorrtt0011223344aa.  It is normal practice to place
temporary files  in the  directory /tmp.   The start of  the file
name identifies the originator of the file.

***** See Also *****

general functions, getpid(), tempnam(), tmpnam()







































COHERENT Lexicon                                           Page 1


