Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/fstream.c

    r356189a rb72bad4f  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // fstream.c --
     7// fstream.c -- 
    88//
    99// Author           : Peter A. Buhr
    1010// Created On       : Wed May 27 17:56:53 2015
    11 // Last Modified By : Rob Schluntz
    12 // Last Modified On : Thu Apr 14 17:04:24 2016
    13 // Update Count     : 176
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Wed Apr 27 18:20:30 2016
     13// Update Count     : 187
    1414//
    1515
     
    7575        if ( fclose( (FILE *)(os->file) ) == EOF ) {
    7676                perror( IO_MSG "close output" );
    77         } // if
     77        } // if 
    7878} // close
    7979
     
    9393int prtfmt( ofstream * os, const char fmt[], ... ) {
    9494    va_list args;
    95 
    9695    va_start( args, fmt );
    9796    int len = vfprintf( (FILE *)(os->file), fmt, args );
     
    103102        } // if
    104103    va_end( args );
     104
     105        sepReset( os );                                                                         // reset separator
    105106        return len;
    106107} // prtfmt
     
    139140        if ( fclose( (FILE *)(is->file) ) == EOF ) {
    140141                perror( IO_MSG "close input" );
    141         } // if
     142        } // if 
    142143} // close
    143144
     
    154155        return is;
    155156} // read
    156 
     157 
    157158ifstream *ungetc( ifstream * is, char c ) {
    158159        if ( fail( is ) ) {
Note: See TracChangeset for help on using the changeset viewer.