summaryrefslogtreecommitdiff
path: root/lib/libc/locale/wcstoul.c
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2005-07-01 08:59:28 +0000
committerMarc Espie <espie@cvs.openbsd.org>2005-07-01 08:59:28 +0000
commitae36f7fa11ba3a91c7f8fb688683282a5042d5b7 (patch)
tree3652c6a307ff32345fe09ba7a76cc27744f3731f /lib/libc/locale/wcstoul.c
parent0d1d2004c203fa5a7aaf53d54981e8396c7068de (diff)
Add a few missing functions so that wctype.h/wchar.h are more or less
uptodate, namely, wcsto(u)l(l) family, wcstod, stubs from wctrans/towctrans crank minor. okay millert@, jmc@.
Diffstat (limited to 'lib/libc/locale/wcstoul.c')
-rw-r--r--lib/libc/locale/wcstoul.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/libc/locale/wcstoul.c b/lib/libc/locale/wcstoul.c
new file mode 100644
index 00000000000..6526a3615c6
--- /dev/null
+++ b/lib/libc/locale/wcstoul.c
@@ -0,0 +1,21 @@
+/* $OpenBSD: wcstoul.c,v 1.1 2005/07/01 08:59:27 espie Exp $ */
+/* $NetBSD: wcstoul.c,v 1.2 2003/03/11 09:21:24 tshiozak Exp $ */
+
+#if defined(LIBC_SCCS) && !defined(lint)
+static char rcsid[] = "$OpenBSD: wcstoul.c,v 1.1 2005/07/01 08:59:27 espie Exp $";
+#endif /* LIBC_SCCS and not lint */
+
+#include <ctype.h>
+#include <errno.h>
+#include <limits.h>
+#include <stdlib.h>
+#include <wchar.h>
+#include <wctype.h>
+
+#include "wctoint.h"
+
+#define FUNCNAME wcstoul
+typedef unsigned long uint_type;
+#define MAX_VALUE ULONG_MAX
+
+#include "_wcstoul.h"