summaryrefslogtreecommitdiff
path: root/libgcompat
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-12 01:46:18 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-12 01:46:18 -0600
commite97935b9c3b3c745d6264f9fad8afd912dbd366d (patch)
tree5053c7ee73b275ccbdd4068da7e44ba1e703f65d /libgcompat
parent7babed497362fff4efd2073fbe65c123d726b61f (diff)
downloadgcompat-e97935b9c3b3c745d6264f9fad8afd912dbd366d.tar.gz
gcompat-e97935b9c3b3c745d6264f9fad8afd912dbd366d.tar.bz2
gcompat-e97935b9c3b3c745d6264f9fad8afd912dbd366d.tar.xz
gcompat-e97935b9c3b3c745d6264f9fad8afd912dbd366d.zip
wchar: Implement __wcstol_internal
Diffstat (limited to 'libgcompat')
-rw-r--r--libgcompat/wchar.c12
1 files changed, 12 insertions, 0 deletions
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);
+}