[BACK]Return to inchr.c CVS log [TXT][DIR] Up to [local] / sys / arch / mvme68k / stand / libbug

File: [local] / sys / arch / mvme68k / stand / libbug / inchr.c (download)

Revision 1.1, Tue Mar 4 16:07:38 2008 UTC (16 years, 3 months ago) by nbrk
Branch point for: MAIN

Initial revision

/*	$OpenBSD: inchr.c,v 1.1 1996/05/16 02:25:38 chuck Exp $ */

/*
 * bug routines -- assumes that the necessary sections of memory
 * are preserved.
 */
#include <sys/types.h>
#include <machine/prom.h>

#include "stand.h"
#include "libbug.h"

/* returns 0 if no characters ready to read */
int
getchar()
{
	int ret;

	MVMEPROM_NOARG();
	MVMEPROM_CALL(MVMEPROM_INCHR);
	MVMEPROM_RETURN_BYTE(ret);
}