[−][src]Function avr_libc::strncmp_PF
pub unsafe extern "C" fn strncmp_PF(
s1: *const i8,
s2: uint_farptr_t,
n: size_t
) -> i16
\ingroup avr_pgmspace \fn int strncmp_PF(const char *s1, uint_farptr_t s2, size_t n) \brief Compare two strings with limited length
The strncmp_PF() function is similar to strcmp_PF() except it only compares the first (at most) \e n characters of \e s1 and \e s2.
\param s1 A pointer to the first string in SRAM \param s2 A far pointer to the second string in Flash \param n The maximum number of bytes to compare
\returns The strncmp_PF() function returns an integer less than, equal to, or greater than zero if \e s1 (or the first \e n bytes thereof) is found, respectively, to be less than, to match, or be greater than \e s2. The contents of RAMPZ SFR are undefined when the function returns.