g_strchr
static Char *g_strchr(const Char *, int);
if ((ptr = (const Char *) g_strchr(ptr, LBRACE)) != NULL)
if ((colon = g_strchr(pattern, ':')) == NULL || colon[1] != ']')
g_strchr(qpatnext+1, RBRACKET) == NULL) {