1 /*
2 * Copyright 2021 Google LLC
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 *
7 * Fixes linking issues with musl due to missing locale-specific string functions.
8 */
9
10 #include <stdlib.h>
11
strtoll_l(const char * nptr,char ** endptr,int base,int locale_t)12 long long strtoll_l(const char *nptr, char **endptr, int base,
13 int locale_t) {
14 return strtoll(nptr, endptr, base);
15 }
16
strtoull_l(const char * nptr,char ** endptr,int base,int locale_t)17 long long strtoull_l(const char *nptr, char **endptr, int base,
18 int locale_t) {
19 return strtoull(nptr, endptr, base);
20 }
21