Files
2025-10-25 03:02:53 +03:00

1.1 KiB
Raw Permalink Blame History

[streambuf.pub.put]

31 Input/output library [input.output]

31.6 Stream buffers [stream.buffers]

31.6.3 Class template basic_streambuf [streambuf]

31.6.3.3 Public member functions [streambuf.members]

31.6.3.3.5 Put area [streambuf.pub.put]

🔗

int_type sputc(char_type c);

1

#

Effects: If the output sequence write position is not available, returnsoverflow(traits::to_int_type(c)).

Otherwise, stores c at the next pointer for the output sequence, increments the pointer, and returnstraits::to_int_type(c).

🔗

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

2

#

Returns: xsputn(s, n).