2.3.38 int strncmp_PF

int strncmp_PF(const char *s1, uint_farptr_t s2, size_t n) __ATTR_PURE__

The strncmp_PF() function is similar to strcmp_PF() except it only compares the first (at most) n characters of s1 and s2.

Remember:

The strncmp_PF() function returns an integer less than, equal to, or greater than zero if s1 (or the first n bytes thereof) is found, respectively, to be less than, to match, or be greater than s2. The contents of RAMPZ SFR are undefined when the function returns.