These functions generate file names that can safely be used for a
temporary file.
_tttt_mmmm_pppp_nnnn_aaaa_mmmm always generates a file name using the path-prefix defined as
_PPPP______tttt_mmmm_pppp_dddd_iiii_rrrr in the _<<<<_ssss_tttt_dddd_iiii_oooo_...._hhhh_>>>> header file. If _s is _NNNN_UUUU_LLLL_LLLL, _tttt_mmmm_pppp_nnnn_aaaa_mmmm leaves its
result in an internal static area and returns a pointer to that area.
The next call to _tttt_mmmm_pppp_nnnn_aaaa_mmmm will destroy the contents of the area. If _s is
not _NNNN_UUUU_LLLL_LLLL, it is assumed to be the address of an array of at least
_LLLL______tttt_mmmm_pppp_nnnn_aaaa_mmmm bytes, where _LLLL______tttt_mmmm_pppp_nnnn_aaaa_mmmm is a constant defined in _<<<<_ssss_tttt_dddd_iiii_oooo_...._hhhh_>>>>; _tttt_mmmm_pppp_nnnn_aaaa_mmmm
places its result in that array and returns _s.
_tttt_eeee_mmmm_pppp_nnnn_aaaa_mmmm allows the user to control the choice of a directory. The
argument _d_i_r points to the name of the directory in which the file is to
be created. If _d_i_r is _NNNN_UUUU_LLLL_LLLL or points to a string that is not a name for
an appropriate directory, the path-prefix defined as _PPPP______tttt_mmmm_pppp_dddd_iiii_rrrr in the
_<<<<_ssss_tttt_dddd_iiii_oooo_...._hhhh_>>>> header file is used. If that directory is not accessible, _////_tttt_mmmm_pppp
will be used as a last resort. To override this entire sequence, provide
a _TTTT_MMMM_PPPP_DDDD_IIII_RRRR environment variable in the user's environment; the variable's
value is the name of the desired temporary-file directory. If the
directory specified by the variable _TTTT_MMMM_PPPP_DDDD_IIII_RRRR is not accessible, the
sequence is then used to determine the temporary-file directory.
Many applications prefer their temporary files to have certain favorite
initial letter sequences in their names. Use the _p_f_x argument for this.
This argument may be _NNNN_UUUU_LLLL_LLLL or point to a string of up to five characters
to be used as the first few characters of the temporary-file name.
_tttt_eeee_mmmm_pppp_nnnn_aaaa_mmmm uses _mmmm_aaaa_llll_llll_oooo_cccc to get space for the constructed file name, and
returns a pointer to this area. Thus, any pointer value returned from
_tttt_eeee_mmmm_pppp_nnnn_aaaa_mmmm may serve as an argument to _ffff_rrrr_eeee_eeee [see _mmmm_aaaa_llll_llll_oooo_cccc(3C)]. If _tttt_eeee_mmmm_pppp_nnnn_aaaa_mmmm
cannot return the expected result for any reason-e.g., _mmmm_aaaa_llll_llll_oooo_cccc failed-or
none of the above mentioned attempts to find an appropriate directory was
successful, a _NNNN_UUUU_LLLL_LLLL pointer will be returned.
_tttt_eeee_mmmm_pppp_nnnn_aaaa_mmmm fails if there is not enough space.