[][src]Function avr_libc::strstr_P

pub unsafe extern "C" fn strstr_P(arg1: *const i8, arg2: *const i8) -> *mut i8

\ingroup avr_pgmspace \fn char *strstr_P(const char *s1, const char *s2) \brief Locate a substring.

The strstr_P() function finds the first occurrence of the substring \p s2 in the string \p s1. The terminating '\0' characters are not compared. The strstr_P() function is similar to strstr() except that \p s2 is pointer to a string in program space.

\returns The strstr_P() function returns a pointer to the beginning of the substring, or NULL if the substring is not found. If \p s2 points to a string of zero length, the function returns \p s1.