Updates the internal string conversion function so that it uses the new Limits.h added in a previous commit for max and min values, and has a templated type. This makes implementing the other strto* functions very simple. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D107999
20 lines
669 B
C++
20 lines
669 B
C++
//===-- Implementation header for strtoull ----------------------*- 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_STDLIB_STRTOULL_H
|
|
#define LLVM_LIBC_SRC_STDLIB_STRTOULL_H
|
|
|
|
namespace __llvm_libc {
|
|
|
|
unsigned long long strtoull(const char *__restrict str,
|
|
char **__restrict str_end, int base);
|
|
|
|
} // namespace __llvm_libc
|
|
|
|
#endif // LLVM_LIBC_SRC_STDLIB_STRTOULL_H
|