home *** CD-ROM | disk | FTP | other *** search
-
-
-
- TMPFILE(3) MINTLIB LIBRARY FUNCTIONS TMPFILE(3)
-
-
- N✓NA✓AM✓ME✓E
- tmpfile - create a temporary file
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- #include <stdio.h>
-
- FILE *tmpfile(void);
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- tmpfile creates a temporary file using a name generated by
- tmpnam, and returns a corresponding FILE pointer. If the
- file cannot be opened, a NULL pointer is returned. The
- file will automatically be deleted when the process using
- it terminates. The file is opened in binary mode for
- update ("w+b").
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- f✓fo✓op✓pe✓en✓n(✓(3✓3)✓),✓, m✓mk✓kt✓te✓em✓mp✓p(✓(3✓3)✓),✓, t✓tm✓mp✓pn✓na✓am✓m(✓(3✓3)✓),✓, u✓un✓nl✓li✓in✓nk✓k(✓(3✓3)✓)
-
- N✓NO✓OT✓TE✓E
- When MiNT is active, and the filesystem supports it, the
- temporary file will be unlinked while it is open. Other-
- wise, the file will be visible to this process and other
- processes and will be unlinked when the process terminates
- using a procedure registered with atexit. Thus, if MiNT is
- not active or if the filesystem used does not support
- unlinking an open file, the temporary file may remain
- after abnormal program termination.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MiNT docs 0.1 3 March 1993 1
-
-
-