g_strncmp
static int g_strncmp(const Char *, const char *, size_t);
if (!g_strncmp(pattern, cc->name, len) && cc->name[len] == '\0')