tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
wcscpy.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
3
#ifndef TETL_CWCHAR_WCSCPY_HPP
4
#define TETL_CWCHAR_WCSCPY_HPP
5
6
#include <
etl/_contracts/check.hpp
>
7
#include <
etl/_cstddef/size_t.hpp
>
8
#include <
etl/_strings/cstr.hpp
>
9
10
namespace
etl
{
11
19
constexpr
auto
wcscpy
(
wchar_t
* dest,
wchar_t
const
* src) ->
wchar_t
*
20
{
21
TETL_PRECONDITION
(dest !=
nullptr
);
22
TETL_PRECONDITION
(src !=
nullptr
);
23
return
etl::detail::strcpy(dest, src);
24
}
25
26
}
// namespace etl
27
#endif
// TETL_CWCHAR_WCSCPY_HPP
check.hpp
TETL_PRECONDITION
#define TETL_PRECONDITION(...)
Definition
check.hpp:16
cstr.hpp
etl
Definition
adjacent_find.hpp:8
etl::wcscpy
constexpr auto wcscpy(wchar_t *dest, wchar_t const *src) -> wchar_t *
Copies the wide string pointed to by src (including the terminating null wide character) to wide char...
Definition
wcscpy.hpp:19
size_t.hpp
include
etl
_cwchar
wcscpy.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0