summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-04-18 15:43:06 +0000
committerru <ru@FreeBSD.org>2001-04-18 15:43:06 +0000
commit16a48734c9ac145fb6d6db8d2877081e97282d2c (patch)
treec8d20287f4e4fc2caf7010d7033f791ab678f6a1 /lib
parent03a0655e15f784d723c950832232bfa85ec825a1 (diff)
downloadFreeBSD-src-16a48734c9ac145fb6d6db8d2877081e97282d2c.zip
FreeBSD-src-16a48734c9ac145fb6d6db8d2877081e97282d2c.tar.gz
mdoc(7) police: fix markup.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/fmtcheck.324
1 files changed, 15 insertions, 9 deletions
diff --git a/lib/libc/gen/fmtcheck.3 b/lib/libc/gen/fmtcheck.3
index d52ea48..f8a7eb9 100644
--- a/lib/libc/gen/fmtcheck.3
+++ b/lib/libc/gen/fmtcheck.3
@@ -46,8 +46,8 @@
.Fn fmtcheck "const char *fmt_suspect" "const char *fmt_default"
.Sh DESCRIPTION
The
-.Nm
-function scans
+.Fn fmtcheck
+scans
.Fa fmt_suspect
and
.Fa fmt_default
@@ -68,8 +68,8 @@ it is useful or necessary to use a user-supplied format string with no
guarantee that the format string matches the specified parameters.
.Pp
The
-.Nm
-function was designed to be used in these cases, as in:
+.Fn fmtcheck
+was designed to be used in these cases, as in:
.Bd -literal -offset indent
printf(fmtcheck(user_format, standard_format), arg1, arg2);
.Ed
@@ -81,9 +81,15 @@ instead of a digit string). Also, any text other than the format specifiers
is completely ignored.
.Pp
Note that the formats may be quite different as long as they accept the
-same parameters. For example, ".Dq %p %o %30s %#llx %-10.*e %n" is
-compatible with "This number %lu %d%% and string %s has %qd numbers
-and %.*g floats (%n)." However, "%o" is not equivalent to "%lx" because
+same parameters. For example,
+.Qq Li "%p %o %30s %#llx %-10.*e %n"
+is compatible with
+.Qq Li "This number %lu %d%% and string %s has %qd numbers and %.*g floats (%n)" .
+However,
+.Qq Li %o
+is not equivalent to
+.Qq Li %lx
+because
the first requires an integer and the second requires a long.
.Sh RETURN VALUES
If
@@ -91,8 +97,8 @@ If
is a valid format and consumes the same argument types as
.Fa fmt_default ,
then the
-.Nm
-function will return
+.Fn fmtcheck
+will return
.Fa fmt_suspect .
Otherwise, it will return
.Fa fmt_default .
OpenPOWER on IntegriCloud