| Alex Brachet | fc2c8b2 | 2022-05-18 17:45:05 +0000 | [diff] [blame] | 1 | //===-- Implementation header for strlcpy -----------------------*- C++ -*-===// |
| 2 | // |
| 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #ifndef LLVM_LIBC_SRC_STRING_STRLCPY_H |
| 10 | #define LLVM_LIBC_SRC_STRING_STRLCPY_H |
| 11 | |
| Job Henandez Lara | 2ce10f0 | 2024-10-20 09:05:41 -0700 | [diff] [blame] | 12 | #include "include/llvm-libc-types/size_t.h" |
| Petr Hosek | 5ff3ff3 | 2024-07-12 09:28:41 -0700 | [diff] [blame] | 13 | #include "src/__support/macros/config.h" |
| Alex Brachet | fc2c8b2 | 2022-05-18 17:45:05 +0000 | [diff] [blame] | 14 | |
| Petr Hosek | 5ff3ff3 | 2024-07-12 09:28:41 -0700 | [diff] [blame] | 15 | namespace LIBC_NAMESPACE_DECL { |
| Alex Brachet | fc2c8b2 | 2022-05-18 17:45:05 +0000 | [diff] [blame] | 16 | |
| 17 | size_t strlcpy(char *__restrict dst, const char *__restrict src, size_t size); |
| 18 | |
| Petr Hosek | 5ff3ff3 | 2024-07-12 09:28:41 -0700 | [diff] [blame] | 19 | } // namespace LIBC_NAMESPACE_DECL |
| Alex Brachet | fc2c8b2 | 2022-05-18 17:45:05 +0000 | [diff] [blame] | 20 | |
| 21 | #endif // LLVM_LIBC_SRC_STRING_STRLCPY_H |