blob: 195c7dcba458c83376c12efbba39674712e79aed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/* $OpenBSD: promcons.c,v 1.2 2001/07/04 08:33:51 niklas Exp $ */
#include <stdarg.h>
#include <sys/types.h>
#include <machine/mon.h>
int
getchar()
{
return ( (*romp->getChar)() );
}
int
peekchar()
{
return ( (*romp->mayGet)() );
}
void
putchar(c)
int c;
{
if (c == '\n')
(*romp->putChar)('\r');
(*romp->putChar)(c);
}
|