Annotation of coherent/a/usr/man/MULTI/tempnam, revision 1.1

1.1     ! root        1: 
        !             2: 
        !             3: tempnam()                General Function               tempnam()
        !             4: 
        !             5: 
        !             6: 
        !             7: 
        !             8: Generate a unique name for a temporary file
        !             9: 
        !            10: cchhaarr *tteemmppnnaamm(_d_i_r_e_c_t_o_r_y, _n_a_m_e);
        !            11: cchhaarr *_d_i_r_e_c_t_o_r_y, *_n_a_m_e;
        !            12: 
        !            13: tempnam constructs  a unique temporary  name that can  be used to
        !            14: name a file.
        !            15: 
        !            16: directory points  to the name of the directory  in which you want
        !            17: the temporary  file written.  If  this variable is  NULL, tempnam
        !            18: reads the  environmental variable TMPDIR  and uses it  for direc-
        !            19: tory.   If neither  directory nor TMPDIR  is given,  tempnam uses
        !            20: /tmp.
        !            21: 
        !            22: name points  to the string  of letters that will  prefix the tem-
        !            23: porary name.   This string should not be more  than three or four
        !            24: characters,  to prevent  truncation or  duplication  of temporary
        !            25: file names.  If name is NULL, tempnam sets it to t.
        !            26: 
        !            27: tempnam uses  malloc to allocate a buffer  for the temporary file
        !            28: name it returns.   If all goes well, it returns  a pointer to the
        !            29: temporary name it has written.  Otherwise, it returns NULL if the
        !            30: allocation fails or if it cannot build a temporary file name suc-
        !            31: cessfully.
        !            32: 
        !            33: ***** See Also *****
        !            34: 
        !            35: general functions, mktemp(), tmpnam()
        !            36: 
        !            37: ***** Notes *****
        !            38: 
        !            39: tempnam is not described in the ANSI Standard.  Programs that use
        !            40: it will  not conform strictly the Standard, and  may not be port-
        !            41: able to other compilers or environments.
        !            42: 
        !            43: 
        !            44: 
        !            45: 
        !            46: 
        !            47: 
        !            48: 
        !            49: 
        !            50: 
        !            51: 
        !            52: 
        !            53: 
        !            54: 
        !            55: 
        !            56: 
        !            57: 
        !            58: 
        !            59: 
        !            60: 
        !            61: 
        !            62: 
        !            63: 
        !            64: COHERENT Lexicon                                           Page 1
        !            65: 
        !            66: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.