tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
strstr.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CSTRING_STRSTR_HPP
4#define TETL_CSTRING_STRSTR_HPP
5
7
8namespace etl {
9
12
17[[nodiscard]] constexpr auto strstr(char* haystack, char* needle) noexcept -> char*
18{
19 return etl::detail::strstr_impl<char>(haystack, needle);
20}
21
22[[nodiscard]] constexpr auto strstr(char const* haystack, char const* needle) noexcept -> char const*
23{
24 return etl::detail::strstr_impl<char const>(haystack, needle);
25}
26
28
29} // namespace etl
30
31#endif // TETL_CSTRING_STRSTR_HPP
constexpr auto strstr(char *haystack, char *needle) noexcept -> char *
Finds the first occurrence of the byte string needle in the byte string pointed to by haystack....
Definition strstr.hpp:17
Definition adjacent_find.hpp:8