/* inbyte * * This routine reads a character from the SOURCE. */ static char inbyte( void ) { char buf[10]; /* * If polling, wait until a character is available. */ while (YAMON_FUNC_GETCHAR(buf) == YAMON_FALSE); return (buf[0]); }
char inbyte( void ) { char buf[10]; /* * If polling, wait until a character is available. */ while (YAMON_FUNC_GETCHAR(buf) == YAMON_FALSE); /* mon_read(0, buf, 1); */ /* stdin is fd=0, read 1 byte */ return (buf[0]); }