summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2016-09-02 15:03:24 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2016-09-02 15:03:24 +0000
commit65393bcfe2332adaa8247819f6944f3adfbbf2c7 (patch)
treea9856828a275fdcd3f1711eb7dc30255c3391f53 /lib
parent894378eb6595a1ea0852f0ebf64722bdc5c0b3a7 (diff)
Make it clear that printable characters of width 0 exist.
While here, polish some wording. OK stsp@
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/locale/wcwidth.312
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/libc/locale/wcwidth.3 b/lib/libc/locale/wcwidth.3
index 83c4e15f61f..dc135274794 100644
--- a/lib/libc/locale/wcwidth.3
+++ b/lib/libc/locale/wcwidth.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: wcwidth.3,v 1.1 2011/04/03 20:21:38 stsp Exp $
+.\" $OpenBSD: wcwidth.3,v 1.2 2016/09/02 15:03:23 schwarze Exp $
.\" Copyright (c) 2002 Tim J. Robbins
.\" All rights reserved.
.\"
@@ -24,7 +24,7 @@
.\" SUCH DAMAGE.
.\"
.\"
-.Dd $Mdocdate: April 3 2011 $
+.Dd $Mdocdate: September 2 2016 $
.Dt WCWIDTH 3
.Os
.Sh NAME
@@ -45,12 +45,10 @@ The
.Fn wcwidth
function returns 0 if the
.Fa wc
-argument is a null wide character (L'\e0'),
-\-1 if
+argument is the NUL wide character (L'\e0'), \-1 if
.Fa wc
-is not printable,
-otherwise it returns the number of column positions the
-character occupies.
+is not printable, or otherwise it returns the number of column
+positions the character occupies, which may be 0, 1, or 2.
.Sh SEE ALSO
.Xr iswprint 3 ,
.Xr wcswidth 3