summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/digittoint.3
diff options
context:
space:
mode:
authortheraven <theraven@FreeBSD.org>2012-03-13 20:02:41 +0000
committertheraven <theraven@FreeBSD.org>2012-03-13 20:02:41 +0000
commit984b6cc8df18c9b3bd311580bd509167e1c531cf (patch)
tree69a75194f34387281521715537bed87eead85720 /lib/libc/locale/digittoint.3
parentb17841f4d2ac6e5e7fa3a9ffadbdb8c97acd19e8 (diff)
downloadFreeBSD-src-984b6cc8df18c9b3bd311580bd509167e1c531cf.zip
FreeBSD-src-984b6cc8df18c9b3bd311580bd509167e1c531cf.tar.gz
First set of xlocale man pages. More to follow...
Approved by: dim (mentor)
Diffstat (limited to 'lib/libc/locale/digittoint.3')
-rw-r--r--lib/libc/locale/digittoint.311
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/libc/locale/digittoint.3 b/lib/libc/locale/digittoint.3
index 372e00f..eebd064 100644
--- a/lib/libc/locale/digittoint.3
+++ b/lib/libc/locale/digittoint.3
@@ -40,12 +40,20 @@
.In ctype.h
.Ft int
.Fn digittoint "int c"
+.Ft int
+.Fn digittoint_l "int c" "locale_t loc"
.Sh DESCRIPTION
The
.Fn digittoint
function converts a numeric character to its corresponding integer value.
The character can be any decimal digit or hexadecimal digit.
With hexadecimal characters, the case of the values does not matter.
+.Pp
+The
+.Fn digittoint_l
+function takes an explicit locale argument, whereas the
+.Fn digittoint
+function use the current global or per-thread locale.
.Sh RETURN VALUES
The
.Fn digittoint
@@ -56,4 +64,5 @@ the function will return 0.
.Sh SEE ALSO
.Xr ctype 3 ,
.Xr isdigit 3 ,
-.Xr isxdigit 3
+.Xr isxdigit 3,
+.Xr xlocale 3
OpenPOWER on IntegriCloud