home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 8.ddi / IOSTRSR1.ZIP / MNSETFLG.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  1011 b   |  37 lines

  1. /*[]------------------------------------------------------------[]*/
  2. /*|                                                              |*/
  3. /*|     mnsetflg.cpp                                             |*/
  4. /*|                                                              |*/
  5. /*|     Predefined manipulators                                  |*/
  6. /*|         smanip_long setiosflags( long )                      |*/
  7. /*|                                                              |*/
  8. /*[]------------------------------------------------------------[]*/
  9.  
  10.  
  11. /*
  12.  *      C/C++ Run Time Library - Version 5.0
  13.  *
  14.  *      Copyright (c) 1990, 1992 by Borland International
  15.  *      All Rights Reserved.
  16.  *
  17.  */
  18.  
  19. #include <ioconfig.h>
  20. #include <iostream.h>
  21. #include <iomanip.h>
  22.  
  23. // set the flags bitvector according to the bits set in b
  24.  
  25. static ios _FAR & sios(ios _FAR & i, long b)
  26. {
  27.     i.setf(b);
  28.     return i;
  29. }
  30.  
  31. smanip_long setiosflags(long b)
  32. {
  33.     return smanip_long(sios, b);
  34. }
  35.  
  36.  
  37.