Files
clang-p2996/libc/src/string/strncat.h
Michael Jones 9e9803bf82 [libc] Add strncat and fix strcat
This adds strncat to llvm libc. In addition, an error was found with
strcat and that was fixed.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D111583
2021-10-12 18:18:18 +00:00

21 lines
645 B
C++

//===-- Implementation header for strncat -----------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_LIBC_SRC_STRING_STRNCAT_H
#define LLVM_LIBC_SRC_STRING_STRNCAT_H
#include <string.h>
namespace __llvm_libc {
char *strncat(char *__restrict dest, const char *__restrict src, size_t count);
} // namespace __llvm_libc
#endif // LLVM_LIBC_SRC_STRING_STRNCAT_H