tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
wcsncat.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_CWCHAR_WCSNCAT_HPP
5
#
define
TETL_CWCHAR_WCSNCAT_HPP
6
7
#
include
<
etl
/
_cstddef
/
size_t
.
hpp
>
8
#
include
<
etl
/
_strings
/
cstr
.
hpp
>
9
10
namespace
etl
{
11
12
/// \brief Appends at most count wide characters from the wide string pointed to
13
/// by src to the end of the character string pointed to by dest, stopping if
14
/// the null terminator is copied. The wide character src[0] replaces the null
15
/// terminator at the end of dest. The null terminator is always appended in the
16
/// end (so the maximum number of wide characters the function may write is
17
/// count+1).
18
///
19
/// \details The destination byte string must have enough space for the contents
20
/// of both dest and src plus the terminating null character, except that the
21
/// size of src is limited to count. The behavior is undefined if the strings
22
/// overlap.
23
constexpr
auto
wcsncat
(
wchar_t
* dest,
wchar_t
const
* src,
etl
::size_t
const
count) ->
wchar_t
*
24
{
25
return
etl
::detail::strncat<
wchar_t
,
etl
::size_t>(dest, src, count);
26
}
27
28
}
// namespace etl
29
30
#
endif
// TETL_CWCHAR_WCSNCAT_HPP
etl
Definition
adjacent_find.hpp:9
etl::wcsncat
constexpr auto wcsncat(wchar_t *dest, wchar_t const *src, etl::size_t const count) -> wchar_t *
Appends at most count wide characters from the wide string pointed to by src to the end of the charac...
Definition
wcsncat.hpp:23
include
etl
_cwchar
wcsncat.hpp
Generated on Sun Sep 7 2025 19:14:54 for tetl by
1.9.8