Table of Contents

Name

CountConfTbl - count the number of entries in a CONFLIST file

Description

CountConfTbl counts the number of CONFLIST lines in a configuration file. Blank lines and comment lines are ignored.

This function is often used before calling allocCONFLIST() to find the size of the table.

This function is part of libmngr.

Syntax

int CountConfTbl(
   char *FN,

   char *PN

   );

Arguments

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: CountConfTbl.3,v 1.1 2002/04/07 18:35:52 kitchen Exp $


Table of Contents