tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
memset.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CSTRING_MEMSET_HPP
4#define TETL_CSTRING_MEMSET_HPP
5
8
9namespace etl {
10
14inline auto memset(void* s, int c, etl::size_t n) -> void*
15{
16 return etl::detail::memset(static_cast<unsigned char*>(s), c, n);
17}
18
19} // namespace etl
20
21#endif // TETL_CSTRING_MEMSET_HPP
auto memset(void *s, int c, etl::size_t n) -> void *
Copies the value of c (converted to an unsigned char) into each of the first n characters of the objec...
Definition memset.hpp:14
Definition adjacent_find.hpp:8
TETL_BUILTIN_SIZET size_t
etl::size_t is the unsigned integer type of the result of the sizeof operator.
Definition size_t.hpp:14