2 *******************************************************************************
5 * RCS: $Header: /home/matthew/cvs/bible-kjv-4.10/util.h,v 2.6 2005/01/23 11:12:18 matthew Exp $
6 * Description: Header file for util.c
8 * Created: Thu Dec 24 11:27:53 1992
9 * Modified: Mon Apr 26 11:14:17 1993 (Chip Chapin) chip@hpclbis
12 * Status: Experimental (Do Not Distribute)
14 *******************************************************************************
18 * Fri Apr 23 10:33:49 1993 (Chip Chapin) chip@hpclbis
19 * Added Univ_Int stuff.
20 *******************************************************************************
22 * Revision 2.6 2005/01/23 11:12:18 matthew
25 * Revision 2.5 2005/01/22 16:27:17 matthew
26 * Add shortuniv_assign, as that's called in makeconcfile.c
28 * Revision 2.4 2005/01/22 00:34:18 matthew
29 * make this header multiple-include-proof
31 * Revision 2.3 2005/01/22 00:31:08 matthew
32 * add univ_assign prototype
34 * Revision 2.2 2005/01/22 00:21:50 matthew
37 * Revision 2.1 2005/01/22 00:20:39 matthew
40 * Revision 2.0 2003/01/08 15:29:52 matthew
41 * versions collected from the net
43 * Revision 1.4 93/04/26 11:18:27 11:18:27 chip (Chip Chapin)
45 * Public release of portable datafile version.
52 #define get_nonblank(S) while (isspace((int)*(S))) (S)++;
56 The Univ_Int data type is stored as a sequence of four bytes, from
57 high-order to low-order. This allows data files to be independent
58 of the native byte-order of any machine.
60 typedef unsigned char Univ_Int[4];/* Universal, byte-order-independent integer*/
61 typedef unsigned char Short_Univ_Int[2]; /* shorter Univ_Int */
63 int univ2int(Univ_Int src);
64 int shortuniv2int(Short_Univ_Int src);
65 void univ_assign(Univ_Int dst,int src);
66 void shortuniv_assign(Univ_Int dst,int src);
68 FILE *findfile(char *dfname,char *pathlist);