Table of Contents

Name

PrintConfTbl - Print the contents of the CONFLIST database

Description

PrintConfTbl traverses the CONFLIST array and prints information about the contents.

This function is part of libmngr.

Syntax

int PrintConfTbl(
   FILE *fd,

   CONFLIST CFpnt[],

   int Size

   );

Arguments

fd

the file descriptor to print to

CFpnt

The pointer to the start of the CONFLIST array

Size

the size of the CONFLIST array.

Return Value

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

Additional Functions

There are additional functions contained in the PrintConfTbl source file. These functions are used by PrintConfTbl to do its work but may be called directly.

char *CFgroup(int X)

returns a pointer to a string which correponds to the Group value.

char *CFfunc(int X)

returns a pointer to a string which correponds to the Function value.

int PrintConfTblItem(FILE *fd, CONFLIST *CFpnt)

prints one item in the CONFLIST.

int PrintConfTblHdr1(FILE *fd)

prints the first line of the table header

int PrintConfTblHdr2(FILE *fd)

prints the second line of the table header

See Also

libmngr(3mngr)

Manual page revision

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


Table of Contents