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// SPDX-FileCopyrightText: Copyright (C) 2019 Tobias Hienzsch
3
4#ifndef TETL_CSTRING_MEMSET_HPP
5#define TETL_CSTRING_MEMSET_HPP
6
7#include <etl/_cstddef/size_t.hpp>
8#include <etl/_strings/cstr.hpp>
9
10namespace etl {
11
12/// Copies the value of c (converted to an unsigned char) into each of
13/// the first n characters of the object pointed to by s.
14/// \ingroup cstring
15inline auto memset(void* s, int c, etl::size_t n) -> void*
16{
17 return etl::detail::memset(static_cast<unsigned char*>(s), c, n);
18}
19
20} // namespace etl
21
22#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:15
Definition adjacent_find.hpp:9