summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/getchar.c
blob: 8c690d567659a67f8f28a3e6348d9eb6f712ce5e (plain)
1
2
3
4
5
6
7
8
9
#include <libc.h>
#include <stdio.h>

int getchar(void)
{
	return fgetc(stdin);
}

weak_reference(getchar, getchar_unlocked);