diff options
Diffstat (limited to 'lib/libc/locale/isdigit.3')
-rw-r--r-- | lib/libc/locale/isdigit.3 | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/lib/libc/locale/isdigit.3 b/lib/libc/locale/isdigit.3 index bb7dd72..42503ad 100644 --- a/lib/libc/locale/isdigit.3 +++ b/lib/libc/locale/isdigit.3 @@ -36,7 +36,7 @@ .\" @(#)isdigit.3 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd October 6, 2002 +.Dd March 30, 2004 .Dt ISDIGIT 3 .Os .Sh NAME @@ -53,15 +53,21 @@ .Sh DESCRIPTION The .Fn isdigit -function tests for any decimal-digit character. -For any locale, -this includes the following characters only: +function tests for a decimal digit character. +Regardless of locale, this includes the following characters only: .Pp .Bl -column \&``0''______ \&``0''______ \&``0''______ \&``0''______ \&``0''______ .It "\&``0''\t``1''\t``2''\t``3''\t``4''" .It "\&``5''\t``6''\t``7''\t``8''\t``9''" .El .Pp +The +.Fn isnumber +function behaves similarly to +.Fn isdigit , +but may recognize additional characters, depending on the current locale +setting. +.Pp For single C .Va char Ns s locales (see @@ -74,7 +80,9 @@ or the value of .Sh RETURN VALUES The .Fn isdigit -function returns zero if the character tests false and +and +.Fn isnumber +functions return zero if the character tests false and returns non-zero if the character tests true. .Sh COMPATIBILITY Although @@ -97,3 +105,8 @@ The .Fn isdigit function conforms to .St -isoC . +.Sh HISTORY +The +.Fn isnumber +function appeared in +.Bx 4.4 . |