Annotation of sys/arch/mvme68k/stand/libbug/putchar.c, Revision 1.1.1.1
1.1 nbrk 1: /* $OpenBSD: putchar.c,v 1.1 1996/05/16 02:25:39 chuck Exp $ */
2:
3: /*
4: * putchar: easier to do this with outstr than to add more macros to
5: * handle byte passing on the stack
6: */
7:
8: #include <sys/types.h>
9: #include <machine/prom.h>
10:
11: #include "stand.h"
12: #include "libbug.h"
13:
14: void
15: putchar(c)
16:
17: int c;
18:
19: {
20: char ca[2];
21: if (c == '\n')
22: putchar('\r');
23: ca[0] = c;
24: mvmeprom_outstr(&ca[0], &ca[1]);
25: }
CVSweb