tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
strncat.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_STRNCAT_HPP
5
#
define
TETL_CSTRING_STRNCAT_HPP
6
7
#
include
<
etl
/
_cstddef
/
size_t
.
hpp
>
8
#
include
<
etl
/
_strings
/
cstr
.
hpp
>
9
10
namespace
etl
{
11
12
/// Appends a byte string pointed to by src to a byte string pointed to
13
/// by dest. At most count characters are copied. The resulting byte string is
14
/// null-terminated.
15
///
16
/// The destination byte string must have enough space for the contents
17
/// of both dest and src plus the terminating null character, except that the
18
/// size of src is limited to count. The behavior is undefined if the strings
19
/// overlap.
20
///
21
/// \ingroup cstring
22
constexpr
auto
strncat
(
char
* dest,
char
const
* src,
etl
::size_t
const
count) ->
char
*
23
{
24
return
etl
::detail::strncat<
char
,
etl
::size_t>(dest, src, count);
25
}
26
27
}
// namespace etl
28
29
#
endif
// TETL_CSTRING_STRNCAT_HPP
etl::strncat
constexpr auto strncat(char *dest, char const *src, etl::size_t const count) -> char *
Appends a byte string pointed to by src to a byte string pointed to by dest. At most count characters...
Definition
strncat.hpp:22
etl
Definition
adjacent_find.hpp:9
include
etl
_cstring
strncat.hpp
Generated on Sun Sep 7 2025 19:14:54 for tetl by
1.9.8