4#ifndef TETL_CSTRING_MEMCHR_HPP
5#define TETL_CSTRING_MEMCHR_HPP
7#include <etl/_cstddef/size_t.hpp>
8#include <etl/_strings/cstr.hpp>
32 return __builtin_memchr(ptr, ch, n);
34 auto* p =
static_cast<
unsigned char*>(ptr);
35 return etl::detail::memchr(p,
static_cast<
unsigned char>(ch), n);
42 return __builtin_memchr(ptr, ch, n);
44 auto const*
const p =
static_cast<
unsigned char const*>(ptr);
45 auto const c =
static_cast<
unsigned char>(ch);
46 return etl::detail::memchr<
unsigned char const, etl::size_t>(p, c, n);
auto memchr(void const *ptr, int ch, etl::size_t n) -> void const *
Converts ch to unsigned char and locates the first occurrence of that value in the initial count char...
Definition memchr.hpp:39
auto memchr(void *ptr, int ch, etl::size_t n) -> void *
Converts ch to unsigned char and locates the first occurrence of that value in the initial count char...
Definition memchr.hpp:29
Definition adjacent_find.hpp:9