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

  1. /*[]------------------------------------------------------------[]*/
  2. /*|                                                              |*/
  3. /*|     srbfreez.cpp                                             |*/
  4. /*|                                                              |*/
  5. /*|     Class strstreambuf                                       |*/
  6. /*|          void strstreambuf::freeze( int )                    |*/
  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 <strstrea.h>
  20.  
  21. void strstreambuf::freeze( int n )
  22. {
  23.     if( ssbflags & dynamic )
  24.         {
  25.         if( n )
  26.             ssbflags |= frozen;
  27.         else
  28.             ssbflags &= ~frozen;
  29.         }
  30. }
  31.  
  32.  
  33.