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

  1. /*[]------------------------------------------------------------[]*/
  2. /*|                                                              |*/
  3. /*|     stbctr2.cpp                                              |*/
  4. /*|                                                              |*/
  5. /*|     Class streambuf                                          |*/
  6. /*|          streambuf::streambuf( char *, 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 <iostream.h>
  20.  
  21. streambuf::streambuf(char* b, int len)
  22. {
  23.     alloc_ = 0;
  24.     unbuf_ = 0;
  25.     base_ = b;
  26.     ebuf_ = (len > 0) ? b + len : b;
  27.     pbase_ = 0;
  28.     pptr_ = 0;
  29.     epptr_ = 0;
  30.     gptr_ = 0;
  31.     egptr_ = 0;
  32.     eback_ = 0;
  33. }
  34.  
  35.  
  36.