summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-12-04 17:49:15 +0000
committerru <ru@FreeBSD.org>2002-12-04 17:49:15 +0000
commita4483b8cb5baa8578d7699bb050fbfeb53f2dda4 (patch)
tree2007e681215f0897d0a06b184a4103cc9a710ef5
parent500c14e805372365f53d1c7abb874ef9b7841391 (diff)
downloadFreeBSD-src-a4483b8cb5baa8578d7699bb050fbfeb53f2dda4.zip
FreeBSD-src-a4483b8cb5baa8578d7699bb050fbfeb53f2dda4.tar.gz
mdoc(7) police: markup overhaul.
Approved by: re
-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 e6b32a1..e3c71f2 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 94762f7..aea2e84 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 12ab4e3..cbb3cd0 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 5dbcf14..e0d7df4 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 512e81b..9d2874a 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 5e279ae..bb432ad 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
OpenPOWER on IntegriCloud