template <int N> int STR_N_CMP(const char (&dest)[N], const char *src) { return strncmp(dest, src, sizeof(dest)); }