isnumber
static int isnumber(const char *);
if (isnumber(sig)) {
if (isnumber(buf))
} else if (isnumber(group))