summaryrefslogtreecommitdiff
path: root/src/stdio/getchar_unlocked.c
blob: 299cb9585b354ca86bc4541ebe3114d16451c77a (plain) (blame)
1
2
3
4
5
6
#include "stdio_impl.h"

int getchar_unlocked(void)
{
	return stdin->rpos < stdin->rstop ? *stdin->rpos++ : __uflow(stdin);
}