tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
wcscat.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_WCSCAT_HPP
5#define TETL_CWCHAR_WCSCAT_HPP
6
7#include <etl/_cstddef/size_t.hpp>
8#include <etl/_strings/cstr.hpp>
9
10namespace etl {
11/// \brief Appends a copy of the wide string pointed to by src to the end of the
12/// wide string pointed to by dest. The wide character src[0] replaces the null
13/// terminator at the end of dest. The resulting wide string is null-terminated.
14///
15/// \details The behavior is undefined if the destination array is not large
16/// enough for the contents of both src and dest and the terminating null
17/// character. The behavior is undefined if the strings overlap.
18constexpr auto wcscat(wchar_t* dest, wchar_t const* src) -> wchar_t*
19{
20 return etl::detail::strcat<wchar_t, etl::size_t>(dest, src);
21}
22} // namespace etl
23
24#endif // TETL_CWCHAR_WCSCAT_HPP
Definition adjacent_find.hpp:9
constexpr auto wcscat(wchar_t *dest, wchar_t const *src) -> wchar_t *
Appends a copy of the wide string pointed to by src to the end of the wide string pointed to by dest....
Definition wcscat.hpp:18