diff options
-rw-r--r-- | CHANGELOG.rst | 5 | ||||
-rw-r--r-- | libgcompat/wchar.c | 12 |
2 files changed, 17 insertions, 0 deletions
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index d5e78e8..7c5365c 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -11,6 +11,11 @@ 0.4.0 (201?-??-??) ================== +wchar +----- + +* Add __wcstol_internal. + 0.3.0 (2018-09-21) diff --git a/libgcompat/wchar.c b/libgcompat/wchar.c index 1ddaa1f..823c3e3 100644 --- a/libgcompat/wchar.c +++ b/libgcompat/wchar.c @@ -38,3 +38,15 @@ int __vswprintf_chk(wchar_t *s, size_t n, int flag, size_t slen, return vswprintf(s, n, format, ap); } + +/** + * Representation of the glibc internals of wcstol(3). + * + * LSB 5.0: LSB-Core-generic/baselib---wcstol-internal-1.html + */ +long int __wcstol_internal(const wchar_t *nptr, wchar_t **endptr, int base, + int group) +{ + assert(group == 0); + return wcstol(nptr, endptr, base); +} |