home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mntdoc01.zoo / mintdoc / cat3 / tmpfile.3 < prev    next >
Encoding:
Text File  |  1993-03-03  |  1.3 KB  |  67 lines

  1.  
  2.  
  3.  
  4. TMPFILE(3)          MINTLIB LIBRARY FUNCTIONS          TMPFILE(3)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        tmpfile - create a temporary file
  9.  
  10. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  11.        #include <stdio.h>
  12.  
  13.        FILE *tmpfile(void);
  14.  
  15. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  16.        tmpfile creates a temporary file using a name generated by
  17.        tmpnam, and returns a corresponding FILE pointer.  If  the
  18.        file  cannot  be  opened,  a NULL pointer is returned. The
  19.        file will automatically be deleted when the process  using
  20.        it  terminates.   The  file  is  opened in binary mode for
  21.        update ("w+b").
  22.  
  23. S✓SE✓EE✓E A✓AL✓LS✓SO✓O
  24.        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)✓)
  25.  
  26. N✓NO✓OT✓TE✓E
  27.        When MiNT is active, and the filesystem supports  it,  the
  28.        temporary  file  will be unlinked while it is open. Other-
  29.        wise, the file will be visible to this process  and  other
  30.        processes and will be unlinked when the process terminates
  31.        using a procedure registered with atexit. Thus, if MiNT is
  32.        not  active  or  if  the  filesystem used does not support
  33.        unlinking an open file,  the  temporary  file  may  remain
  34.        after abnormal program termination.
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. MiNT docs 0.1              3 March 1993                         1
  65.  
  66.  
  67.