1fc2c8b23SAlex Brachet //===-- Implementation of strlcpy -----------------------------------------===//
2fc2c8b23SAlex Brachet //
3fc2c8b23SAlex Brachet // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4fc2c8b23SAlex Brachet // See https://llvm.org/LICENSE.txt for license information.
5fc2c8b23SAlex Brachet // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6fc2c8b23SAlex Brachet //
7fc2c8b23SAlex Brachet //===----------------------------------------------------------------------===//
8fc2c8b23SAlex Brachet 
9fc2c8b23SAlex Brachet #include "src/string/strlcpy.h"
10fc2c8b23SAlex Brachet #include "src/string/string_utils.h"
11fc2c8b23SAlex Brachet 
12fc2c8b23SAlex Brachet #include "src/__support/common.h"
13fc2c8b23SAlex Brachet 
14fc2c8b23SAlex Brachet namespace __llvm_libc {
15fc2c8b23SAlex Brachet 
16fc2c8b23SAlex Brachet LLVM_LIBC_FUNCTION(size_t, strlcpy,
17fc2c8b23SAlex Brachet                    (char *__restrict dst, const char *__restrict src,
18fc2c8b23SAlex Brachet                     size_t size)) {
19*b1183305SAlex Brachet   return internal::strlcpy(dst, src, size);
20fc2c8b23SAlex Brachet }
21fc2c8b23SAlex Brachet 
22fc2c8b23SAlex Brachet } // namespace __llvm_libc
23