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

Getting the next character&period;

== Synopsis

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

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

== Description

If the input read position is available, returns that character, otherwise calls and returns `underflow()&period;` Does not move the read position after fetching the character&period;

== Return Value

The next character, or eof&period;


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