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

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