summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/stringlist.3
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-12-18 13:33:04 +0000
committerru <ru@FreeBSD.org>2002-12-18 13:33:04 +0000
commit863465c1ab2c58349d7f1f859822ef564e592280 (patch)
tree6086e75984c3472fb331e2598243ce260e65581f /lib/libc/gen/stringlist.3
parent8746d263e1451855025dc83dde5176cc9f1fbe3f (diff)
downloadFreeBSD-src-863465c1ab2c58349d7f1f859822ef564e592280.zip
FreeBSD-src-863465c1ab2c58349d7f1f859822ef564e592280.tar.gz
mdoc(7) police: Fixed abuses of the .Ar and .Em macros.
Diffstat (limited to 'lib/libc/gen/stringlist.3')
-rw-r--r--lib/libc/gen/stringlist.334
1 files changed, 17 insertions, 17 deletions
diff --git a/lib/libc/gen/stringlist.3 b/lib/libc/gen/stringlist.3
index d3806f5..496ad98 100644
--- a/lib/libc/gen/stringlist.3
+++ b/lib/libc/gen/stringlist.3
@@ -64,7 +64,7 @@ functions manipulate stringlists, which are lists of
strings that extend automatically if necessary.
.Pp
The
-.Ar StringList
+.Vt StringList
structure has the following definition:
.Bd -literal -offset indent
typedef struct _stringlist {
@@ -75,14 +75,14 @@ typedef struct _stringlist {
.Ed
.Pp
.Bl -tag -width "sl_str" -offset indent
-.It Ar sl_str
+.It Va sl_str
a pointer to the base of the array containing the list.
-.It Ar sl_max
+.It Va sl_max
the size of
-.Ar sl_str .
-.It Ar sl_cur
+.Va sl_str .
+.It Va sl_cur
the offset in
-.Ar sl_str
+.Va sl_str
of the current element.
.El
.Pp
@@ -91,32 +91,32 @@ The following stringlist manipulation functions are available:
.It Fn sl_init
Create a stringlist.
Returns a pointer to a
-.Ar StringList .
+.Vt StringList .
.It Fn sl_free
Releases memory occupied by
-.Ar sl
+.Fa sl
and the
-.Ar sl->sl_str
+.Fa sl->sl_str
array.
If
-.Ar freeall
+.Fa freeall
is non-zero, then each of the items within
-.Ar sl->sl_str
+.Fa sl->sl_str
is released as well.
.It Fn sl_add
Add
-.Ar item
+.Fa item
to
-.Ar sl->sl_str
+.Fa sl->sl_str
at
-.Ar sl->sl_cur ,
+.Fa sl->sl_cur ,
extending the size of
-.Ar sl->sl_str
+.Fa sl->sl_str
.It Fn sl_find
Find
-.Ar item
+.Fa item
in
-.Ar sl ,
+.Fa sl ,
returning NULL if it's not found.
.El
.Sh SEE ALSO
OpenPOWER on IntegriCloud