/*
 * $Header: /smsa/bsd:include/struct.h:bsd  1.4  $
 * $Source: /smsa/bsd:include/struct.h: $
 *
 * Copyright (c) 1988 Acorn Computers Ltd., Cambridge, England
 */
/*	struct.h	4.1	83/05/03	*/

#ifndef __struct_h
#define __struct_h

/*
 * access to information relating to the fields of a structure
 */

#define	fldoff(str, fld)	((int)&(((struct str *)0)->fld))
#define	fldsiz(str, fld)	(sizeof(((struct str *)0)->fld))
#define	strbase(str, ptr, fld)	((struct str *)((char *)(ptr)-fldoff(str, fld)))

#endif/*__struct_h*/

/* EOF struct.h */
