home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c065 / 2.ddi / CLIB2.ZIP / ISTREAMX.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-07  |  1.2 KB  |  37 lines

  1. /*-----------------------------------------------------------------------*
  2.  * filename - istreamx.cpp
  3.  * Obsolete class istream constructors
  4.  *-----------------------------------------------------------------------*/
  5.  
  6. /*[]------------------------------------------------------------[]*/
  7. /*|                                                              |*/
  8. /*|     Turbo C++ Run Time Library - Version 1.0                 |*/
  9. /*|                                                              |*/
  10. /*|                                                              |*/
  11. /*|     Copyright (c) 1990 by Borland International              |*/
  12. /*|     All Rights Reserved.                                     |*/
  13. /*|                                                              |*/
  14. /*[]------------------------------------------------------------[]*/
  15.  
  16. #include <strstrea.h>
  17. #include <fstream.h>
  18.  
  19.  
  20. // Obsolete constructor, for streams 1.2 compatibility
  21. #pragma warn -par
  22. istream::istream(int sz, char* b, int sk)
  23. {
  24.     ios::init(new strstreambuf(b, 0, 0));
  25.     skip(sk);
  26. }
  27. #pragma warn .par
  28.  
  29.  
  30. // Obsolete constructor, for streams 1.2 compatibility
  31. istream::istream(int fd, int sk, ostream* t)
  32. {
  33.     ios::init(new filebuf(fd));
  34.     skip(sk);
  35.     tie(t);
  36. }
  37.