[#bsl-basic_stringbuf-sungetc] = xref:bsl.adoc[bsl]::xref:bsl/basic_stringbuf.adoc[basic_stringbuf]::sungetc :relfileprefix: ../../ :mrdocs: Moving backwards in the input stream. == Synopsis Declared in `<bslstl_stringbuf.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int_type sungetc(); ---- == Description If a putback position is available, this function decrements the input pointer and returns that character. Otherwise, calls and returns pbackfail(). The effect is to _unget_ the last character _gotten._ == Return Value The previous character, if possible. [.small]#Created with https://www.mrdocs.com[MrDocs]#