#include <cat/gen.h>
int catgen_fixservice(char *service, char **version);
The function returns the length of the service string.
int i; char *ver; char serv[] = "ora-ps-5.0"; i = catgen_fixservice(serv, &ver);
will set the ver
pointer to ``5.0
'' and will NUL-terminate the name, making serv
point to ``ora-ps
''. The value of i
will be 6.
catgen_getint, catgen_infopath, catgen_newnode, catgen_servicepath, catgen_set