V7/usr/src/libc/stdio/getw.c

Find at most related files.
including files from this version of Unix.

#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));
}