AUSAM/source/libS/getw.c

Compare this file to the similar file:
Show the results in this format:

#include	"stdio.h"

getw(iop)
register struct _iobuf *iop;
{
	register i;

	i = getc(iop);
	if (iop->_flag&_IOEOF)
		return(-1);
	return(i | (getc(iop)<<8));
}