man3mngr/BldConfTbl

Table of Contents

Name

BldConfTbl - Load a CONFLIST database from a file

Description

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.

Syntax

int BldConfTbl(
   HEADER_TBL *HTpnt,

   CONFLIST CFpnt[],

   int Size,

   int Mode,

   char *FN,

   char *PN

   );

Arguments

HTpnt

pointer to the HEADER_TBL.

CFpnt

The pointer to the start of the CONFLIST array

Size

The size of the CONFLIST array

Mode

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.

Fn

The pathname of the file to read from.

Pn

The name of the program calling this function.

Return Value

0 is returned on success. -1 is returned on failure and a message is printed to stderr.

Notes

The PN argument is not very useful since each program generally writes into its own logging file.

See Also

libmngr(3mngr)

Manual page revision

$Id: BldConfTbl.3,v 1.1 2002/04/07 18:35:52 kitchen Exp $


Table of Contents