[][src]Function avr_libc::strstr

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

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

The strstr() function finds the first occurrence of the substring \p s2 in the string \p s1. The terminating '\0' characters are not compared.

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