tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
strcpy.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
3
#ifndef TETL_CSTRING_STRCPY_HPP
4
#define TETL_CSTRING_STRCPY_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
21
constexpr
auto
strcpy
(
char
* dest,
char
const
* src) ->
char
*
22
{
23
TETL_PRECONDITION
(dest !=
nullptr
);
24
TETL_PRECONDITION
(src !=
nullptr
);
25
return
etl::detail::strcpy(dest, src);
26
}
27
28
}
// namespace etl
29
30
#endif
// TETL_CSTRING_STRCPY_HPP
check.hpp
TETL_PRECONDITION
#define TETL_PRECONDITION(...)
Definition
check.hpp:16
cstr.hpp
etl::strcpy
constexpr auto strcpy(char *dest, char const *src) -> char *
Copies the character string pointed to by src, including the null terminator, to the character array ...
Definition
strcpy.hpp:21
etl
Definition
adjacent_find.hpp:8
size_t.hpp
include
etl
_cstring
strcpy.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0