[][src]Function avr_libc::strchr_P

pub unsafe extern "C" fn strchr_P(arg1: *const i8, __val: i16) -> *const i8

\ingroup avr_pgmspace \fn const char *strchr_P(const char *s, int val) \brief Locate character in program space string.

The strchr_P() function locates the first occurrence of \p val (converted to a char) in the string pointed to by \p s in program space. The terminating null character is considered to be part of the string.

The strchr_P() function is similar to strchr() except that \p s is pointer to a string in program space.

\returns The strchr_P() function returns a pointer to the matched character or \c NULL if the character is not found.