Table of Contents
BldConfTbl - Load a CONFLIST database from a file
BldConfTbl
reads from a file containing a set of CONFLIST definitions. Each line of
the file is translated and placed into successive entries of a
CONFLIST
array.
The entries in the CONFLIST array may be built using LABEL and DESC
pointers or these pointers may be left null and only the Label and RefName
entries used. See the Mode argument.
This function is part of libmngr.
int
BldConfTbl(
HEADER_TBL *HTpnt,
CONFLIST CFpnt[],
int Size,
int Mode,
char *FN,
char *PN
);
pointer to the HEADER_TBL.
The pointer to the start of
the
CONFLIST array
The size of the
CONFLIST array
Sets the mode
for building
CONFLIST entries.
BLD_MODE_lcl causes the LabelPnt and DescPnt
entries to be filled in by searching the database pointed to by HTpnt.
BLD_MODE_rmt
causes the LabelPnt and DescPnt entries to be set to null.
The pathname
of the file to read from.
The name of the program calling this function.
0 is returned on success. -1 is returned on failure and a message
is printed to stderr.
The PN argument is not very useful since each
program generally writes into its own logging file.
libmngr(3mngr)
$Id: BldConfTbl.3,v 1.1 2002/04/07 18:35:52 kitchen Exp
$
Table of Contents