[][src]Function sgx_trts::memchr::memchr

pub fn memchr(needle: u8, haystack: &[u8]) -> Option<usize>

A safe interface to memchr.

Returns the index corresponding to the first occurrence of needle in haystack, or None if one is not found.

A safe interface to memrchr.

Returns the index corresponding to the last occurrence of needle in haystack, or None if one is not found.