132142Sminshall /* 2*62309Sbostic * Copyright (c) 1988, 1993 3*62309Sbostic * The Regents of the University of California. All rights reserved. 433685Sbostic * 542770Sbostic * %sccs.include.redist.c% 633685Sbostic * 7*62309Sbostic * @(#)general.h 8.1 (Berkeley) 06/06/93 833685Sbostic */ 933685Sbostic 1033685Sbostic /* 1132142Sminshall * Some general definitions. 1232142Sminshall */ 1332142Sminshall 1432142Sminshall 1532142Sminshall #define numberof(x) (sizeof x/sizeof x[0]) 1632142Sminshall #define highestof(x) (numberof(x)-1) 1732142Sminshall 1832142Sminshall #define ClearElement(x) memset((char *)&x, 0, sizeof x) 1932142Sminshall #define ClearArray(x) memset((char *)x, 0, sizeof x) 20