diff options
author | Garrett D'Amore <garrett@damore.org> | 2014-05-18 20:08:38 -0700 |
---|---|---|
committer | Garrett D'Amore <garrett@damore.org> | 2014-07-11 20:35:28 -0700 |
commit | 2d08521bd15501c8370ba2153b9cca4f094979d0 (patch) | |
tree | cd843bc37fe795bc7bbdd04b5b13b0310a2d6be1 /usr/src/man/man3c/getwchar.3c | |
parent | 961519c5bffd5ec670890fc3596d6c4ff1cefea0 (diff) | |
download | illumos-gate-2d08521bd15501c8370ba2153b9cca4f094979d0.tar.gz |
2964 need POSIX 2008 locale object support
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src/man/man3c/getwchar.3c')
-rw-r--r-- | usr/src/man/man3c/getwchar.3c | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/usr/src/man/man3c/getwchar.3c b/usr/src/man/man3c/getwchar.3c index 8aa26f269c..2c20fb27b1 100644 --- a/usr/src/man/man3c/getwchar.3c +++ b/usr/src/man/man3c/getwchar.3c @@ -1,4 +1,5 @@ '\" te +.\" Copyright 2014 Garrett D'Amore <garrett@damore.org> .\" Copyright (c) 1992, X/Open Company Limited All Rights Reserved Portions Copyright (c) 2002, Sun Microsystems, Inc. All Rights Reserved .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at .\" http://www.opengroup.org/bookstore/. @@ -17,45 +18,47 @@ getwchar \- get wide character from stdin stream \fBwint_t\fR \fBgetwchar\fR(void) .fi +.LP +.nf +#include <wchar.h> +#include <xlocale.h> +\fBwint_t\fR \fBgetwchar_l\fR(locale_t loc) +.fi .SH DESCRIPTION -.sp .LP -The \fBgetwchar()\fR function is equivalent to \fBgetwc(stdin)\fR. +The \fBgetwchar()\fR function is equivalent to \fBgetwc\fR(\fBstdin\fR). +.LP +The\fBgetwchar_l()\fR function is equivalent to \fBgetwc\fR(\fBstdin\fR, \fIloc\fR). .SH RETURN VALUES -.sp .LP Refer to \fBfgetwc\fR(3C). .SH ERRORS -.sp .LP Refer to \fBfgetwc\fR(3C). .SH USAGE -.sp .LP If the \fBwint_t\fR value returned by \fBgetwchar()\fR is stored into a variable of type \fBwchar_t\fR and then compared against the \fBwint_t\fR macro \fBWEOF\fR, the comparison may never succeed because \fBwchar_t\fR is defined as unsigned. .SH ATTRIBUTES -.sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: -.sp - -.sp .TS box; c | c l | l . ATTRIBUTE TYPE ATTRIBUTE VALUE _ -Interface Stability Standard +Interface Stability See below. _ MT-Level MT-Safe .TE +.LP +The \fBgetwchar()\fR function is Standard. The \fBgetwchar_l()\fR function +is Uncommitted. .SH SEE ALSO -.sp .LP \fBfgetwc\fR(3C), \fBgetwc\fR(3C), \fBattributes\fR(5), \fBstandards\fR(5) |