basic_streambuf::sgetc

To extract a character from the stream.

int_type sgetc();

Remarks

The function sgetc() extracts a single character, without moving the get pointer.

A int_type type at the get pointer if available, otherwise returns underflow().

For an example of streambuf::sgetc() usage refer to streambuf::sbumpc()