summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/isdigit.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/locale/isdigit.3')
-rw-r--r--lib/libc/locale/isdigit.312
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/libc/locale/isdigit.3 b/lib/libc/locale/isdigit.3
index 53b1986..961d7e1 100644
--- a/lib/libc/locale/isdigit.3
+++ b/lib/libc/locale/isdigit.3
@@ -46,6 +46,10 @@
.Fn isdigit "int c"
.Ft int
.Fn isnumber "int c"
+.Ft int
+.Fn isdigit_l "int c" "locale_t loc"
+.Ft int
+.Fn isnumber_l "int c" "locale_t loc"
.Sh DESCRIPTION
The
.Fn isdigit
@@ -68,6 +72,9 @@ The value of the argument must be representable as an
.Vt "unsigned char"
or the value of
.Dv EOF .
+.Pp
+The _l-suffixed versions take an explicit locale argument, whereas the
+non-suffixed versions use the current global or per-thread locale.
.Sh RETURN VALUES
The
.Fn isdigit
@@ -89,12 +96,17 @@ function should be used instead.
.Xr ctype 3 ,
.Xr iswdigit 3 ,
.Xr multibyte 3 ,
+.Xr xlocale 3 ,
.Xr ascii 7
.Sh STANDARDS
The
.Fn isdigit
function conforms to
.St -isoC .
+The
+.Fn isdigit_l
+function conforms to
+.St -p1003.1-2008 .
.Sh HISTORY
The
.Fn isnumber
OpenPOWER on IntegriCloud