[][src]Function avr_libc::memchr

pub unsafe extern "C" fn memchr(
    arg1: *const c_void,
    arg2: i16,
    arg3: size_t
) -> *mut c_void

\ingroup avr_string \fn void *memchr(const void *src, int val, size_t len) \brief Scan memory for a character.

The memchr() function scans the first len bytes of the memory area pointed to by src for the character val. The first byte to match val (interpreted as an unsigned character) stops the operation.

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