rd_unsig2.c 291 B

123456789101112131415
  1. /* $Id$ */
  2. /*
  3. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  4. * See the copyright notice in the ACK home directory, in the file "Copyright".
  5. */
  6. #include "obj.h"
  7. unsigned int rd_unsigned2(int fd)
  8. {
  9. char buf[2];
  10. rd_bytes(fd, buf, 2L);
  11. return uget2(buf);
  12. }