basic_streambuf::sgetn

To extract a series of characters from the stream.

streamsize sgetn(char_type *s, streamsize n);

Remarks

The public member function sgetn() is used to extract a series of characters from the stream buffer. After the operation, the get pointer references the character following the last character extracted.

Returns a streamsize type as returned from the function xsgetn(s,n).

For an example of streambuf::sgetn() usage refer to pubsetbuf()