getrule
static const char * getrule(const char * strp, struct rule * rulep);
if ((name = getrule(name, &start)) == NULL)
if ((name = getrule(name, &end)) == NULL)