home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / ixemul-39.47-env-bin.lha / man / cat3 / fclose.0 < prev    next >
Text File  |  1993-12-07  |  1KB  |  67 lines

  1.  
  2. FCLOSE(3)                  UNIX Programmer's Manual                  FCLOSE(3)
  3.  
  4. NNAAMMEE
  5.      ffcclloossee - close a stream
  6.  
  7. SSYYNNOOPPSSIISS
  8.      ##iinncclluuddee <<ssttddiioo..hh>>
  9.  
  10.      _i_n_t
  11.      ffcclloossee(_F_I_L_E _*_s_t_r_e_a_m)
  12.  
  13. DDEESSCCRRIIPPTTIIOONN
  14.      The ffcclloossee() function dissociates the named _s_t_r_e_a_m from its underlying
  15.      file or set of functions.  If the stream was being used for output, any
  16.      buffered data is written first, using fflush(3).
  17.  
  18. RREETTUURRNN VVAALLUUEESS
  19.      Upon successful completion 0 is returned.  Otherwise, EOF is returned and
  20.      the global variable _e_r_r_n_o is set to indicate the error.  In either case
  21.      no further access to the stream is possible.
  22.  
  23. EERRRROORRSS
  24.      [EBADF]  The argument _s_t_r_e_a_m is not an open stream.
  25.  
  26.      The ffcclloossee() function may also fail and set _e_r_r_n_o for any of the errors
  27.      specified for the routines close(2) or fflush(3).
  28.  
  29. SSEEEE AALLSSOO
  30.      close(2),  fflush(3),  fopen(3),  setbuf(3)
  31.  
  32. SSTTAANNDDAARRDDSS
  33.      The ffcclloossee() function conforms to ANSI C3.159­1989 (``ANSI C'').
  34.  
  35. BSD Experimental                 June 29, 1991                               1
  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.  
  65.  
  66.  
  67.