streambuf::xsgetn [virtual] [protected]
streamsize sgetn ( char * s, streamsize n );

Get some characters.
  Gets a series of characters from in input sequence and stores them in the array pointed by s until n characters have been copied or the input stream has no more characters.
  This is a virtual member function that can be overridden in derived classes.


Pointer to a block of memory where the character sequence will be stored.
Number of character to be gotten. This is an object of type streamsize.

Return Value.
  The number of characters read.

Basic template member declaration ( basic_streambuf<charT,traits> ):
typedef charT char_type;
streamsize xsgetn (char_type * s, streamsize n);

See also.
  streambuf class

© The C++ Resources Network, 2001