[#bsl-basic_stringbuf-sputbackc]
= xref:bsl.adoc[bsl]::xref:bsl/basic_stringbuf.adoc[basic&lowbar;stringbuf]::sputbackc
:relfileprefix: ../../
:mrdocs:

Pushing characters back into the input stream&period;

== Synopsis

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

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

== Description

Similar to sungetc(), but _&lowbar;&lowbar;c_ is pushed onto the stream instead of _the previous character&period;_ If successful, the next character fetched from the input stream will be _&lowbar;&lowbar;c&period;_

== Return Value

The previous character, if possible&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *&lowbar;&lowbar;c*
| The character to push back&period;
|===


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