1*87c01607SMichael Jones //===-- Implementation of atof --------------------------------------------===//
2*87c01607SMichael Jones //
3*87c01607SMichael Jones // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*87c01607SMichael Jones // See https://llvm.org/LICENSE.txt for license information.
5*87c01607SMichael Jones // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*87c01607SMichael Jones //
7*87c01607SMichael Jones //===----------------------------------------------------------------------===//
8*87c01607SMichael Jones 
9*87c01607SMichael Jones #include "src/stdlib/atof.h"
10*87c01607SMichael Jones #include "src/__support/common.h"
11*87c01607SMichael Jones #include "src/__support/str_to_float.h"
12*87c01607SMichael Jones 
13*87c01607SMichael Jones namespace __llvm_libc {
14*87c01607SMichael Jones 
15*87c01607SMichael Jones LLVM_LIBC_FUNCTION(double, atof, (const char *str)) {
16*87c01607SMichael Jones   return internal::strtofloatingpoint<double>(str, nullptr);
17*87c01607SMichael Jones }
18*87c01607SMichael Jones 
19*87c01607SMichael Jones } // namespace __llvm_libc
20