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

  1. /*[]------------------------------------------------------------[]*/
  2. /*|                                                              |*/
  3. /*|     stbstb1.cpp                                              |*/
  4. /*|                                                              |*/
  5. /*|     Class streambuf                                          |*/
  6. /*|          streambuf *streambuf::setbuf( char *, int, 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. // obsolete.  included for compatibility with version 1.2 streams
  22.  
  23. streambuf* streambuf::setbuf(char* p, int len, int offset)
  24. {
  25.     setb(p, p + len, 0);
  26.     setp(p + offset, p + len);
  27.     return this;
  28. }
  29.  
  30.  
  31.