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
10namespace 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
22constexpr 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
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
Definition adjacent_find.hpp:9