diff options
author | Dan Albert <danalbert@google.com> | 2014-07-09 10:09:04 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2014-07-09 15:41:53 -0700 |
commit | e087eac404b0e30de427392065e2750acf92bd4a (patch) | |
tree | c547e35ffc82ee9afd441d2e3739a87de73103fd /libc/bionic/strtoll_l.cpp | |
parent | 6cdd0cfd2f279dfb20b9f7cccc963eb9ee91c666 (diff) | |
download | android_bionic-e087eac404b0e30de427392065e2750acf92bd4a.tar.gz android_bionic-e087eac404b0e30de427392065e2750acf92bd4a.tar.bz2 android_bionic-e087eac404b0e30de427392065e2750acf92bd4a.zip |
Add locale aware APIs.
Since we only support the C locale, we can just forward all of these to
their non-locale equivalents for correct behavior.
Change-Id: Ib7be71b7f636309c0cc3be1096a4c1f693f04fbb
Diffstat (limited to 'libc/bionic/strtoll_l.cpp')
-rw-r--r-- | libc/bionic/strtoll_l.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/libc/bionic/strtoll_l.cpp b/libc/bionic/strtoll_l.cpp new file mode 100644 index 000000000..05fb76083 --- /dev/null +++ b/libc/bionic/strtoll_l.cpp @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2014 The Android Open Source Project + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS + * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#include <stdlib.h> + +long long strtoll_l(const char *nptr, char **endptr, size_t base, locale_t) { + return strtoll(nptr, endptr, base); +} |