/*
  (c) 1990 S.Hawtin.
  Permission is granted to copy this file provided
   1) It is not used for commercial gain
   2) This notice is included in all copies
   3) Altered copies are marked as such

  No liability is accepted for the contents of the file.

  getw.c	within		Public Domain UNIX.lib

*/

#include <types.h>
#include <stdio.h>

unsigned int
getw(fptr)
    FILE *fptr;
   {/* Get a word from a file */
    unsigned int res;

    res = fgetc(fptr);
    res = (res<<8) + fgetc(fptr);
    return(res);
    }
