/
GitCaptain
/
llvm-project
Обзор
Документация
Войти
/
GitCaptain
/
llvm-project
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
fix-tests
libc/src/string/strncpy.h
20 строк
641 B
Cheng Wang
[libc] Add strncpy implementation.
02 дек 2020, 15:45
02 дек 2020, 15:45
60cef89
Код
Авторство
О чём код?
//===-- Implementation header for strncpy -----------------------*- 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_STRNCPY_H #define LLVM_LIBC_SRC_STRING_STRNCPY_H #include <stddef.h> namespace __llvm_libc { char *strncpy(char *__restrict dest, const char *__restrict src, size_t n); } // namespace __llvm_libc #endif // LLVM_LIBC_SRC_STRING_STRNCPY_H