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>streambuf::sputn</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
streambuf::sputn

Usage

   #include <iostream.hpp>
   int streambuf::sputn(const char *source, int n);

Description

   Attempts to put n characters starting from source into the put area. The
   put pointer is then advanced to the position following the characters
   transferred.

   The return value gives the number of characters sucessfully transferred,
   which may be less than n if an end of file condition occurs.

Example 

   char string = "whatever";
   streambuf sb;

   sb.putn(string, 8);

Return Value

   Returns the number of characters sucessfully transferred.






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