[#bsl-basic_syncbuf-sputc-06]
= xref:bsl.adoc[bsl]::xref:bsl/basic_syncbuf.adoc[basic&lowbar;syncbuf]::sputc
:relfileprefix: ../../
:mrdocs:

Entry point for all single&hyphen;character output functions&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;syncbuf&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int&lowbar;type
sputc(char&lowbar;type &lowbar;&lowbar;c);
----

== Description

One of two public output functions&period;

If a write position is available for the output sequence (i&period;e&period;, the buffer is not full), stores _&lowbar;&lowbar;c_ in that position, increments the position, and returns `traits&colon;&colon;to&lowbar;int&lowbar;type(&lowbar;&lowbar;c)&period;` If a write position is not available, returns `overflow(&lowbar;&lowbar;c)&period;`

== Return Value

_&lowbar;&lowbar;c,_ if possible&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *&lowbar;&lowbar;c*
| A character to output&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
