30 Input/output library [input.output]

30.6 Stream buffers [stream.buffers]

30.6.3 Class template basic_­streambuf [streambuf]

30.6.3.2 basic_­streambuf public member functions [streambuf.members]

30.6.3.2.5 Put area [streambuf.pub.put]

int_type sputc(char_type c);

Returns: If the output sequence write position is not available, returns overflow(traits​::​to_­int_­type(c)). Otherwise, stores c at the next pointer for the output sequence, increments the pointer, and returns traits​::​to_­int_­type(c).

streamsize sputn(const char_type* s, streamsize n);

Returns: xsputn(s, n).