The Microsoft Input/Output Stream Classes (iostream.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
ios::setf
ios                                         Up Contents Index Back
──The Microsoft iostream Classes────────────────────────────────────────────
 
  long setf( long lFlags );
  long setf( long lFlags, long lMask );
 
  Parameter   Description
 
  <lFlags>    Format flag bit values. See the flags member function for
              a list of format flags. These flags can be combined by using
              the bitwise-OR (|) operator.
 
  <lMask>     Format flag bit mask.
 
  Remarks
 
  The first overloaded setf function turns on only those format bits that
  are specified by 1s in <lFlags>. It returns a long that contains the
  previous value of all the flags.
 
  The second function alters those format bits specified by 1s in <lMask>.
  The new values of those format bits are determined by the corresponding
  bits in <lFlags>. It returns a long that contains the previous value of
  all the flags.
 
  See Also
 
  ios::flags, ios::unsetf, ios setiosflags manipulator
 
 
                                     -♦-