Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>filebuf::attach</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
filebuf::attach

Usage

   #include <fstream.hpp>
   filebuf *filebuf::attach(int file_descriptor);

Description

   Attaches the specified file to an existing filebuf. Returns a pointer to
   itself if successful, or zero if a file was already attached. If a file
   is already attached, call close() first.

Example 

   filebuf fb;
   int fd = open(...);
   fb.attach(fd);

Return Value

   Pointer to the object for which it was called, or zero on failure.





Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson