pub unsafe extern "C" fn tempnam(
__dir: *const c_char,
__pfx: *const c_char,
) -> *mut c_charExpand description
Generate a unique temporary filename using up to five characters of PFX if it is not NULL. The directory to put this file in is searched for as follows: First the environment variable “TMPDIR” is checked. If it contains the name of a writable directory, that directory is used. If not and if DIR is not NULL, that value is checked. If that fails, P_tmpdir is tried and finally “/tmp”. The storage for the filename is allocated by `malloc’.