1d52f0aecSMichael Jones //===-- Implementation of strtoull ----------------------------------------===//
2d52f0aecSMichael Jones //
3d52f0aecSMichael Jones // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4d52f0aecSMichael Jones // See https://llvm.org/LICENSE.txt for license information.
5d52f0aecSMichael Jones // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6d52f0aecSMichael Jones //
7d52f0aecSMichael Jones //===----------------------------------------------------------------------===//
8d52f0aecSMichael Jones 
9d52f0aecSMichael Jones #include "src/stdlib/strtoull.h"
10d52f0aecSMichael Jones #include "src/__support/common.h"
11*31d797f4SMichael Jones #include "src/__support/str_to_integer.h"
12d52f0aecSMichael Jones 
13d52f0aecSMichael Jones namespace __llvm_libc {
14d52f0aecSMichael Jones 
15d52f0aecSMichael Jones LLVM_LIBC_FUNCTION(unsigned long long, strtoull,
16d52f0aecSMichael Jones                    (const char *__restrict str, char **__restrict str_end,
17d52f0aecSMichael Jones                     int base)) {
18d52f0aecSMichael Jones   return internal::strtointeger<unsigned long long>(str, str_end, base);
19d52f0aecSMichael Jones }
20d52f0aecSMichael Jones 
21d52f0aecSMichael Jones } // namespace __llvm_libc
22