summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/getchar.c
blob: d26c3c6bbc67e67bfa88cdd7c86387e40e813ef0 (plain)
1
2
3
4
5
6
7
8
9
#include <libc.h>  // for weak_reference
#include <stdio.h> // for fgetc, getchar, getchar_unlocked, stdin

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

weak_reference(getchar, getchar_unlocked);