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