home *** CD-ROM | disk | FTP | other *** search
-
-
-
- TMPNAM(3) MINTLIB LIBRARY FUNCTIONS TMPNAM(3)
-
-
- N✓NA✓AM✓ME✓E
- tmpnam - create a name for a temporary file
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- #include <stdio.h>
-
- char *tmpnam(char *buf);
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- This function generates a file name that can safely be
- used for a temporary file.
-
- tmpnam always tries to generate a file name in a directory
- meant for temporary files; it tries to determine such a
- directory by checking the environment variables TEMP,
- TMPDIR, TMP and TEMPDIR, successively; if this search
- fails, the current directory is used.
-
- If buf is NULL, tmpnam leaves its result in an internal
- static area and returns a pointer to that area. The next
- call to tmpnam will destroy the contents of the area. If
- buf is not NULL, it is assumed to be the address of an
- buffer area; tmpnam places its result in that buffer and
- returns buf.
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- c✓cr✓re✓ea✓at✓t(✓(3✓3)✓),✓, f✓fo✓op✓pe✓en✓n(✓(3✓3)✓),✓, m✓mk✓kt✓te✓em✓mp✓p(✓(3✓3)✓),✓, t✓tm✓mp✓pf✓fi✓il✓le✓e(✓(3✓3)✓),✓, u✓un✓nl✓li✓in✓nk✓k(✓(3✓3)✓)
-
- N✓NO✓OT✓TE✓ES✓S
- The related UN*X function tempnam is currently not avail-
- able in the mintlibs.
-
- This function generates a different file name each time it
- is called.
-
- Files created using this function and either fopen or
- creat are temporarily only in the sense that they reside
- in a directory intended for temporary use, and their file
- names are unique. It is the user's responsibility to use
- unlink to remove the file when its use is ended.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MiNT docs 0.1 3 March 1993 1
-
-
-