summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2002-12-04 17:49:15 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2002-12-04 17:49:15 +0000
commit898f520da85b4349f5645d74190c4175c08c5389 (patch)
tree2007e681215f0897d0a06b184a4103cc9a710ef5
parentb7cea4d5d261c2bf92f7cb4831bc50a2dedf01a0 (diff)
Notes
-rw-r--r--lib/libc/stdio/fputws.32
-rw-r--r--lib/libc/stdio/getwc.35
-rw-r--r--lib/libc/stdio/putwc.314
-rw-r--r--lib/libc/stdio/ungetwc.33
-rw-r--r--lib/libc/stdio/wprintf.32
-rw-r--r--lib/libc/stdio/wscanf.310
6 files changed, 22 insertions, 14 deletions
diff --git a/lib/libc/stdio/fputws.3 b/lib/libc/stdio/fputws.3
index e6b32a1720661..e3c71f21d9841 100644
--- a/lib/libc/stdio/fputws.3
+++ b/lib/libc/stdio/fputws.3
@@ -61,7 +61,7 @@ to the stream pointed to by
The
.Fn fputws
function
-returns 0 on success and -1 on error.
+returns 0 on success and \-1 on error.
.Sh ERRORS
.Bl -tag -width Er
.It Bq Er EBADF
diff --git a/lib/libc/stdio/getwc.3 b/lib/libc/stdio/getwc.3
index 94762f723167b..aea2e847fbdab 100644
--- a/lib/libc/stdio/getwc.3
+++ b/lib/libc/stdio/getwc.3
@@ -44,7 +44,7 @@
.Sh NAME
.Nm fgetwc ,
.Nm getwc ,
-.Nm getwchar ,
+.Nm getwchar
.Nd get next wide-character from input stream
.Sh LIBRARY
.Lb libc
@@ -77,7 +77,8 @@ The
function
is equivalent to
.Fn getwc
-with the argument stdin.
+with the argument
+.Em stdin .
.Sh RETURN VALUES
If successful, these routines return the next wide-character
from the
diff --git a/lib/libc/stdio/putwc.3 b/lib/libc/stdio/putwc.3
index 12ab4e36fca08..cbb3cd069e335 100644
--- a/lib/libc/stdio/putwc.3
+++ b/lib/libc/stdio/putwc.3
@@ -44,7 +44,7 @@
.Sh NAME
.Nm fputwc ,
.Nm putwc ,
-.Nm putwchar ,
+.Nm putwchar
.Nd output a wide-character to a stream
.Sh LIBRARY
.Lb libc
@@ -66,21 +66,26 @@ writes the wide-character
to the output stream pointed to by
.Fa stream .
.Pp
+The
.Fn putwc
+function
acts essentially identically to
.Fn fputwc .
.Pp
+The
.Fn putwchar
+function
is identical to
.Fn putwc
with an output stream of
.Em stdout .
.Sh RETURN VALUES
-The functions,
+The
.Fn fputwc ,
-.Fn putwc
+.Fn putwc ,
and
.Fn putwchar
+functions
return the wide-character written.
If an error occurs, the value
.Dv WEOF
@@ -92,10 +97,11 @@ is returned.
.Xr putc 3 ,
.Xr stdio 3
.Sh STANDARDS
-The functions
+The
.Fn fputwc ,
.Fn putwc ,
and
.Fn putwchar
+functions
conform to
.St -isoC-99 .
diff --git a/lib/libc/stdio/ungetwc.3 b/lib/libc/stdio/ungetwc.3
index 5dbcf142b73e0..e0d7df4188653 100644
--- a/lib/libc/stdio/ungetwc.3
+++ b/lib/libc/stdio/ungetwc.3
@@ -56,7 +56,8 @@ The
.Fn ungetwc
function pushes the wide-character
.Fa wc
-(converted to an wchar_t)
+(converted to an
+.Vt wchar_t )
back onto the input stream pointed to by
.Fa stream .
The pushed-backed wide-characters will be returned by subsequent reads on the
diff --git a/lib/libc/stdio/wprintf.3 b/lib/libc/stdio/wprintf.3
index 512e81b0274f9..9d2874a5bb8c6 100644
--- a/lib/libc/stdio/wprintf.3
+++ b/lib/libc/stdio/wprintf.3
@@ -34,7 +34,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)printf.3 8.1 (Berkeley) 6/4/93
-.\" FreeBSD: src/lib/libc/stdio/printf.3,v 1.47 2002/09/06 11:23:55 tjr Exp
+.\" FreeBSD: src/lib/libc/stdio/printf.3,v 1.47 2002/09/06 11:23:55 tjr Exp
.\" $FreeBSD$
.\"
.Dd September 18, 2002
diff --git a/lib/libc/stdio/wscanf.3 b/lib/libc/stdio/wscanf.3
index 5e279aec12f72..bb432ad74e5ce 100644
--- a/lib/libc/stdio/wscanf.3
+++ b/lib/libc/stdio/wscanf.3
@@ -34,7 +34,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)scanf.3 8.2 (Berkeley) 12/11/93
-.\" FreeBSD: src/lib/libc/stdio/scanf.3,v 1.17 2002/05/30 09:53:47 ru Exp
+.\" FreeBSD: src/lib/libc/stdio/scanf.3,v 1.17 2002/05/30 09:53:47 ru Exp
.\" $FreeBSD$
.\"
.Dd September 22, 2002
@@ -361,10 +361,10 @@ is added).
The usual skip of leading white space is suppressed.
To skip white space first, use an explicit space in the format.
.Pp
-If an
-.Cm l
-qualifier is present, the next pointer must be a pointer to
-.Vt wchar_t ,
+If an
+.Cm l
+qualifier is present, the next pointer must be a pointer to
+.Vt wchar_t ,
into which the input will be placed.
.It Cm C
The same as