blob: 5ebae79d5744d574564e6db8c2862ba387c2aa6b [file] [log] [blame]
//===-- 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