Files
clang-p2996/libc/src/string/stpncpy.h
Michael Jones 9b6f8b985c [libc] add stpcpy and stpncpy
Adds an implementation for stpcpy and stpncpy, which are posix extension
functions.

Reviewed By: sivachandra, lntue

Differential Revision: https://reviews.llvm.org/D111913
2021-11-04 11:39:26 -07:00

21 lines
641 B
C++

//===-- Implementation header for stpncpy -----------------------*- 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_STPNCPY_H
#define LLVM_LIBC_SRC_STRING_STPNCPY_H
#include <stddef.h>
namespace __llvm_libc {
char *stpncpy(char *__restrict dest, const char *__restrict src, size_t n);
} // namespace __llvm_libc
#endif // LLVM_LIBC_SRC_STRING_STPNCPY_H