tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
strcat.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
// SPDX-FileCopyrightText: Copyright (C) 2020 Tobias Hienzsch
3
4
#
ifndef
TETL_CSTRING_STRCAT_HPP
5
#
define
TETL_CSTRING_STRCAT_HPP
6
7
#
include
<
etl
/
_cstddef
/
size_t
.
hpp
>
8
#
include
<
etl
/
_strings
/
cstr
.
hpp
>
9
10
namespace
etl
{
11
12
/// Appends a copy of the character string pointed to by src to the end
13
/// of the character string pointed to by dest. The character src[0] replaces
14
/// the null terminator at the end of dest. The resulting byte string is
15
/// null-terminated.
16
///
17
/// The behavior is undefined if the destination array is not large
18
/// enough for the contents of both src and dest and the terminating null
19
/// character. The behavior is undefined if the strings overlap.
20
///
21
/// \ingroup cstring
22
constexpr
auto
strcat
(
char
* dest,
char
const
* src)
noexcept
->
char
*
23
{
24
return
etl
::detail::strcat<
char
,
etl
::size_t>(dest, src);
25
}
26
27
}
// namespace etl
28
29
#
endif
// TETL_CSTRING_STRCAT_HPP
etl::strcat
constexpr auto strcat(char *dest, char const *src) noexcept -> char *
Appends a copy of the character string pointed to by src to the end of the character string pointed t...
Definition
strcat.hpp:22
etl
Definition
adjacent_find.hpp:9
include
etl
_cstring
strcat.hpp
Generated on Sun Sep 7 2025 19:14:53 for tetl by
1.9.8