/*
 * file.h
 * File support routines.
 *
 * Copyright (c) 1996 T. J. Wilkinson & Associates, London, UK.
 *
 * See the file "license.terms" for information on usage and redistribution
 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 *
 * Written by Tim Wilkinson <tim@tjwassoc.demon.co.uk>, 1996.
 */

#ifndef __file_h
#define __file_h

#define	readu1(c, f)	((*(c)) = getc(f))
#define	readu2(c, f)	((*(c)) = getc(f) << 8, (*c) |= getc(f))
#define	readu4(c, f)	((*(c)) = getc(f) << 24, (*c) |= getc(f) << 16, (*c) |= getc(f) << 8, (*c) |= getc(f))

#endif
