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

Usage

   #include <iostream.hpp>

   void streambuf::stossc();

Description

   The stossc function advances the get pointer one position, effectively
   rejecting the character at that position. If the get pointer is past the
   end of the get area, the stossc function has no effect. The stossc
   function has no return value. It cannot provoke failure, since it does
   not call the underflow function.

   It is usually used in conjunction with sgetc to implement a conditional
   csbumpc.

Example 

   streambuf sb;
   int c;

   while ((c = sb.sgetc()) != EOF && isspace(c))
       sb.stossc();

   if (c != EOF) {
       c = sb.sbumpc();    // get first non-whitespace character
       ...;
   } else {
       ...;

Return Value

   None.





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