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

Usage

   #include <iostream.hpp>
   int streambuf::sputc(int c);

Description

   Stores the char value of c at the current position of the put pointer.,
   then moves the put pointer on one place. If the put pointer was already
   beyond the end of the put area, the overflow function is called to
   attempt to empty the put area to the ultimate destination. Then the
   character is placed in the empty put area and the put pointer positioned
   after it.

   Passing the EOF value as argument has no effect on the base streambuf,
   but derived classes may have special behavior in response to this value.
   EOF is returned if the underflow function needs to be called, and fails

   to make space in the put area available.

Example 

   streambuf sb;

   sp.putc('a');

Return Value

   Returns EOF if an error occurs, or some other unspecified value if all is
   well.





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