NetBSD/sys/arch/sun3/stand/libsa/promcons.c

27 lines
265 B
C
Raw Normal View History

1995-02-15 01:56:36 +03:00
#include <stdarg.h>
#include <sys/types.h>
#include <machine/mon.h>
int
getchar()
{
return ( (*romp->getChar)() );
}
int
1995-02-15 01:56:36 +03:00
peekchar()
{
return ( (*romp->mayGet)() );
}
void
putchar(c)
int c;
{
if (c == '\n')
(*romp->putChar)('\r');
(*romp->putChar)(c);
}