/
GitCaptain
/
llvm-project
Обзор
Документация
Войти
/
GitCaptain
/
llvm-project
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
fix-tests
libc/src/stdlib/atof.cpp
19 строк
644 B
Michael Jones
[libc] add atof, strtof and strtod
19 окт 2021, 02:10
19 окт 2021, 02:10
87c0160
Код
Авторство
О чём код?
//===-- Implementation of atof --------------------------------------------===// // // 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/stdlib/atof.h" #include "src/__support/common.h" #include "src/__support/str_to_float.h" namespace __llvm_libc { LLVM_LIBC_FUNCTION(double, atof, (const char *str)) { return internal::strtofloatingpoint<double>(str, nullptr); } } // namespace __llvm_libc