jos/user/getc.c

10 lines
132 B
C
Raw Permalink Normal View History

2019-04-25 19:58:37 -07:00
#include <inc/lib.h>
void
umain(int argc, char **argv)
{
char c;
while(!(c = sys_cgetc()));
cprintf("got character %c\n", c);
}