Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/iostream.cfa

    r2fa0237 r0f107e4  
    1 
    21//
    32// Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
     
    977976                if ( f.flags.ignore ) { fmtstr[1] = '*'; start += 1; }
    978977                // no maximum width necessary because text ignored => width is read width
    979                 if ( f.wd != -1 ) {
    980                         // wd is buffer bytes available (for input chars + null terminator)
    981                         // rwd is count of input chars
    982                         int rwd = f.flags.rwd ? f.wd : (f.wd - 1);
    983                         start += sprintf( &fmtstr[start], "%d", rwd );
    984                 }
     978                if ( f.wd != -1 ) { start += sprintf( &fmtstr[start], "%d", f.wd ); }
    985979
    986980                if ( ! scanset ) {
     
    999993                } // if
    1000994
    1001                 int check = f.wd - 2;
     995                int check = f.wd - 1;
    1002996                if ( ! f.flags.rwd ) f.s[check] = '\0';                 // insert sentinel
    1003997                len = fmt( is, fmtstr, f.s );
Note: See TracChangeset for help on using the changeset viewer.