[][src]Function avr_libc::memchr_P

pub unsafe extern "C" fn memchr_P(
    arg1: *const c_void,
    __val: i16,
    __len: size_t
) -> *const c_void

\ingroup avr_pgmspace \fn const void * memchr_P(const void *s, int val, size_t len) \brief Scan flash memory for a character.

The memchr_P() function scans the first \p len bytes of the flash memory area pointed to by \p s for the character \p val. The first byte to match \p val (interpreted as an unsigned character) stops the operation.

\return The memchr_P() function returns a pointer to the matching byte or \c NULL if the character does not occur in the given memory area.