|
|
coherent
mktemp() General Function mktemp()
Generate a temporary file name
cchhaarr *mmkktteemmpp(_p_a_t_t_e_r_n) cchhaarr *_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 mmkktteemmpp("/ttmmpp/ssoorrttXXXXXXXXXXXX"); might
return the name /ttmmpp/ssoorrtt0011223344aa. 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
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.