/
GitCaptain
/
llvm-project
Обзор
Документация
Войти
/
GitCaptain
/
llvm-project
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
fix-tests
libc/src/string/strpbrk.cpp
21 строка
714 B
Michael Jones
[libc] Switch to use a macro which does not insert a section for every libc function.
09 янв 2021, 02:52
09 янв 2021, 02:52
a0b65a7
Код
Авторство
О чём код?
//===-- Implementation of strpbrk -----------------------------------------===// // // 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 // //===----------------------------------------------------------------------===// #include "src/string/strpbrk.h" #include "src/__support/common.h" #include "src/string/string_utils.h" namespace __llvm_libc { LLVM_LIBC_FUNCTION(char *, strpbrk, (const char *src, const char *breakset)) { src += internal::complementary_span(src, breakset); return *src ? const_cast<char *>(src) : nullptr; } } // namespace __llvm_libc