From 984b6cc8df18c9b3bd311580bd509167e1c531cf Mon Sep 17 00:00:00 2001 From: theraven Date: Tue, 13 Mar 2012 20:02:41 +0000 Subject: First set of xlocale man pages. More to follow... Approved by: dim (mentor) --- lib/libc/locale/digittoint.3 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'lib/libc/locale/digittoint.3') 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 -- cgit v1.1