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

  1. /*-----------------------------------------------------------------------*
  2.  * filename - ostreamx.cpp
  3.  * Obsolete class ostream 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. ostream::ostream(int fd)
  22. {
  23.     ios::init(new filebuf(fd));
  24. }
  25.  
  26.  
  27. // Obsolete constructor, for streams 1.2 compatibility
  28. ostream::ostream(int sz, char* b)
  29. {
  30.     ios::init(new strstreambuf(b, sz, b));
  31. }
  32.