"Fossies" - the Fresh Open Source Software Archive

Member "delegate9.9.13/maker/_-fcloseFILE2.c" (20 Jun 2010, 260 Bytes) of package /linux/misc/old/delegate9.9.13.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "_-fcloseFILE2.c" see the Fossies "Dox" file reference documentation.

    1 const char *type_fcloseFILE = "B";
    2 #include <stdio.h>
    3 #include "ystring.h"
    4 /*
    5  * fclose(FILE *fp) without closing fileno(FILE *fp)
    6  */
    7 int FL_fcloseFILE(FL_PAR,FILE *fp){ 
    8     int fd = fileno(fp);
    9     fflush(fp);
   10     fp->_fileno = -1;
   11     fclose(fp);
   12         return fd;
   13 }