std::basic_streambuf<CharT,Traits>::sgetc (3) - Linux Manuals
std::basic_streambuf<CharT,Traits>::sgetc: std::basic_streambuf<CharT,Traits>::sgetc
NAME
std::basic_streambuf<CharT,Traits>::sgetc - std::basic_streambuf<CharT,Traits>::sgetc
Synopsis
int_type sgetc();
Reads one character from the input sequence.
If the input sequence read position is not available, returns underflow(). Otherwise returns Traits::to_int_type(*gptr()).
Parameters
(none)
Return value
The value of the character pointed to by the get pointer.
Example
// Run this code
Output:
See also
sbumpc (public member function)
snextc (public member function)