GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::basic_streambuf::sputc(3) C++ Standard Libary std::basic_streambuf::sputc(3)

std::basic_streambuf::sputc - std::basic_streambuf::sputc


int_type sputc( char_type ch );


Writes one character to the output sequence.


If the output sequence write position is not available (the buffer is full), then
calls overflow(ch).


ch - character to write


The written character, converted to int_type with Traits::to_int_type(ch) on
success.


Traits::eof() (as returned by overflow()) on failure.

// Run this code


#include <iostream>
#include <sstream>


int main()
{
std::ostringstream s;
s.rdbuf()->sputc('a');
std::cout << s.str() << '\n';
}


a


sputn invokes xsputn()
(public member function)

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.