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

Moving backwards in the input stream&period;

== Synopsis

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

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

== Description

If a putback position is available, this function decrements the input pointer and returns that character&period; Otherwise, calls and returns pbackfail()&period; The effect is to _unget_ the last character _gotten&period;_

== Return Value

The previous character, if possible&period;


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