The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

fclose (3)
  • fclose (3) ( Solaris man: Библиотечные вызовы )
  • >> fclose (3) ( FreeBSD man: Библиотечные вызовы )
  • fclose (3) ( Русские man: Библиотечные вызовы )
  • fclose (3) ( Linux man: Библиотечные вызовы )
  • fclose (3) ( POSIX man: Библиотечные вызовы )

  • BSD mandoc
     

    NAME

    
    
    fclose
    
     
    fcloseall
    
     - close a stream
    
     
    

    LIBRARY

    Lb libc
    
     
    

    SYNOPSIS

       #include <stdio.h>
    int fclose (FILE *stream);
    void fcloseall (void);
     

    DESCRIPTION

    The fclose ();
    function dissociates the named Fa stream from its underlying file or set of functions. If the stream was being used for output, any buffered data is written first, using fflush(3).

    The fcloseall ();
    function calls fclose ();
    on all open streams.  

    RETURN VALUES

    Upon successful completion 0 is returned. Otherwise, EOF is returned and the global variable errno is set to indicate the error. In either case no further access to the stream is possible.  

    ERRORS

    The fclose ();
    function may also fail and set errno for any of the errors specified for the routines close(2) or fflush(3).  

    NOTES

    The fclose ();
    function does not handle NULL arguments; they will result in a segmentation violation. This is intentional - it makes it easier to make sure programs written under Fx are bug free. This behaviour is an implementation detail, and programs should not rely upon it.  

    SEE ALSO

    close(2), fflush(3), fopen(3), setbuf(3)  

    STANDARDS

    The fclose ();
    function conforms to St -isoC .

    The fcloseall ();
    function first appeared in Fx 7.0 .


     

    Index

    NAME
    LIBRARY
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    ERRORS
    NOTES
    SEE ALSO
    STANDARDS


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру