The Microsoft Input/Output Stream Classes (iostream.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
filebuf::attach
filebuf                                     Up Contents Index Back
──The Microsoft iostream Classes────────────────────────────────────────────
 
  filebuf* attach( filedesc fd );
 
  Parameter   Description
 
  <fd>        A file descriptor as returned by a call to the run-time
              function _open or _sopen. filedesc is a typedef equivalent
              to int.
 
  Remarks
 
  Attaches this filebuf object to the open file specified by <fd>.
 
  Return Value
 
  NULL when the stream is already attached to a file; otherwise it returns
  its own address.
 
 
                                     -♦-