Files
clang-p2996/libc/src/string/memccpy.h
Michael Jones db8a88fef8 [libc] add memccpy and mempcpy
Add an implementation for memccpy and mempcpy. These functions are
posix extensions for the moment.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D111762
2021-10-14 16:38:00 -07:00

22 lines
666 B
C++

//===-- Implementation header for memccpy -----------------------*- 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_MEMCCPY_H
#define LLVM_LIBC_SRC_STRING_MEMCCPY_H
#include <stddef.h>
namespace __llvm_libc {
void *memccpy(void *__restrict dest, const void *__restrict src, int c,
size_t count);
} // namespace __llvm_libc
#endif // LLVM_LIBC_SRC_STRING_MEMCCPY_H