SysIII/usr/src/lib/libc/vax/stdio/getw.c

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

/*LINTLIBRARY*/
#include <stdio.h>

getw(iop)
register FILE *iop;
{
	register i;
	register char *p;
	int w;

	p = (char *)&w;
	for(i = sizeof(int); --i >= 0; )
		*p++ = getc(iop);
	if(feof(iop))
		return(EOF);
	return(w);
}