home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_122 / 10.ddi / IOSTRSRC.ZIP / STFLAGS.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  957 b   |  34 lines

  1. /*[]------------------------------------------------------------[]*/
  2. /*|                                                              |*/
  3. /*|     stflags.cpp                                              |*/
  4. /*|                                                              |*/
  5. /*|     Class ios                                                |*/
  6. /*|          long ios::flags( long )                             |*/
  7. /*|                                                              |*/
  8. /*[]------------------------------------------------------------[]*/
  9.  
  10. /*
  11.  *      C/C++ Run Time Library - Version 5.0
  12.  *
  13.  *      Copyright (c) 1990, 1992 by Borland International
  14.  *      All Rights Reserved.
  15.  *
  16.  */
  17.  
  18. #include <ioconfig.h>
  19. #include <iostream.h>
  20.  
  21.  
  22. long ios::flags(long l)
  23. {
  24.     long x = x_flags;
  25.     x_flags = l;
  26.     if( l & ios::skipws )
  27.         ispecial |= skipping;
  28.     else
  29.         ispecial &= ~skipping;
  30.     return x;
  31. }
  32.  
  33.  
  34.