Table of Contents
CountConfTbl - count the number of entries in a CONFLIST file
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.
int CountConfTbl(
char *FN,
char *PN
);
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: CountConfTbl.3,v
1.1 2002/04/07 18:35:52 kitchen Exp $
Table of Contents