diff options
author | issyl0 <issyl0@FreeBSD.org> | 2012-07-30 20:56:19 +0000 |
---|---|---|
committer | issyl0 <issyl0@FreeBSD.org> | 2012-07-30 20:56:19 +0000 |
commit | 6a683d47fc64b7528b27294edebfc2000aebb8e6 (patch) | |
tree | b03fb0c02592919423a6e39600a8980a691a1bd9 /lib/libc/locale/ispunct.3 | |
parent | 89309bc6673045ff9487f37d243689e634b7d5b8 (diff) | |
download | FreeBSD-src-6a683d47fc64b7528b27294edebfc2000aebb8e6.zip FreeBSD-src-6a683d47fc64b7528b27294edebfc2000aebb8e6.tar.gz |
Add more locale-specific functions to the relevant man pages and Makefile:
- lib/libc/locale/islower.3
- lib/libc/locale/ispunct.3
- lib/libc/locale/nl_langinfo.3
- lib/libc/locale/isgraph.3
- lib/libc/locale/isspace.3
Reviewed by: bz
Approved by: theraven
MFC after: 5 days
Diffstat (limited to 'lib/libc/locale/ispunct.3')
-rw-r--r-- | lib/libc/locale/ispunct.3 | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/lib/libc/locale/ispunct.3 b/lib/libc/locale/ispunct.3 index 8fcfe54..c06b25d 100644 --- a/lib/libc/locale/ispunct.3 +++ b/lib/libc/locale/ispunct.3 @@ -32,7 +32,7 @@ .\" @(#)ispunct.3 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd July 17, 2005 +.Dd July 30, 2012 .Dt ISPUNCT 3 .Os .Sh NAME @@ -44,6 +44,8 @@ .In ctype.h .Ft int .Fn ispunct "int c" +.Ft int +.Fn ispunct_l "int c" "locale_t loc" .Sh DESCRIPTION The .Fn ispunct @@ -69,11 +71,19 @@ In the ASCII character set, this includes the following characters .It "\&136\ ``^''" Ta "137\ ``_''" Ta "140\ ```''" Ta "173\ ``{''" Ta "174\ ``|''" .It "\&175\ ``}''" Ta "176\ ``~''" Ta \& Ta \& Ta \& .El +.Pp +The +.Fn ispunct_l +function takes an explicit locale argument, whereas the +.Fn ispunct +function uses the current global or per-thread locale. .Sh RETURN VALUES The .Fn ispunct -function returns zero if the character tests false and -returns non-zero if the character tests true. +and +.Fn ispunct_l +functions return zero if the character tests false and +return non-zero if the character tests true. .Sh COMPATIBILITY The .Bx 4.4 @@ -93,3 +103,7 @@ The .Fn ispunct function conforms to .St -isoC . +The +.Fn ispunct_l +function conforms to +.St -p1003.1-2008 . |