103532527SMichael Jones //===-- Implementation of strtoumax ---------------------------------------===// 203532527SMichael Jones // 303532527SMichael Jones // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 403532527SMichael Jones // See https://llvm.org/LICENSE.txt for license information. 503532527SMichael Jones // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 603532527SMichael Jones // 703532527SMichael Jones //===----------------------------------------------------------------------===// 803532527SMichael Jones 903532527SMichael Jones #include "src/inttypes/strtoumax.h" 1003532527SMichael Jones #include "src/__support/common.h" 11*31d797f4SMichael Jones #include "src/__support/str_to_integer.h" 1203532527SMichael Jones 1303532527SMichael Jones namespace __llvm_libc { 1403532527SMichael Jones 1503532527SMichael Jones LLVM_LIBC_FUNCTION(uintmax_t, strtoumax, 1603532527SMichael Jones (const char *__restrict str, char **__restrict str_end, 1703532527SMichael Jones int base)) { 1803532527SMichael Jones return internal::strtointeger<uintmax_t>(str, str_end, base); 1903532527SMichael Jones } 2003532527SMichael Jones 2103532527SMichael Jones } // namespace __llvm_libc 22