NAME

catgen_getint -retrieve integer from the info tree

SYNOPSIS

#include <cat/gen.h>

int catgen_getint(cat_session *sess, const char *name, int *value);

DESCRIPTION

This function is a wrapper for catinfo_get(), used to retrieve an integer from the info tree.

Sess is the session. name is the pathname for the value in the info tree (either absolute or relative mode, see catinfo). value is a pointer to the integer where the result will be stored.

The value stored at name must be numeric or this function will return an error.

RETURN VALUES

The function returns 0 if successful, or a negative value on error.

SEE ALSO

cat, catgen, catinfo

catgen_fixservice, catgen_infopath, catgen_newnode, catgen_servicepath, catgen_set, catinfo_get