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

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