Category : Files from Magazines
Archive   : CUJ9405.ZIP
Filename : SETF.C

 
Output of file : SETF.C contained in archive : CUJ9405.ZIP


--------------- Listing 10: The function ios::setf(fmtflags) -----------

// iossetf1 -- ios::setf(fmtflags)
#include

ios::fmtflags ios::setf(fmtflags nf)
{ // set format bits
ios::fmtflags of = _Fmtfl;
_Fmtfl |= nf & _Fmtmask;
return (of);
}