Add _XOPEN_SOURCE to prototype.

This commit is contained in:
Michael Kerrisk 2006-10-13 11:21:08 +00:00
parent 4e319d85b4
commit ecf19f0cce
1 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@
wcwidth \- determine columns needed for a wide character
.SH SYNOPSIS
.nf
.B #define _XOPEN_SOURCE
.B #include <wchar.h>
.sp
.BI "int wcwidth(wchar_t " c );
@ -26,7 +27,7 @@ is at least 0. If \fIc\fP is L'\\0', the value is 0. Otherwise \-1 is returned.
.SH "RETURN VALUE"
The \fBwcwidth\fP() function returns the number of column positions for \fIc\fP.
.SH "CONFORMING TO"
C99.
POSIX.1-2001.
Note that glibc before 2.2.5 used the prototype
.br