Skip to content

Commit

Permalink
Fix man page
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Shafer committed Apr 15, 2016
1 parent 596dad6 commit b80549c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions libxo/xo_emit_f.3
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,15 @@ for either a specific format string or all format strings, respectively.
These functions are only needed when the calling application wants to
clear this information; they are not generally needed.
.Sh EXAMPLES
.Pp
.Bd -literal -offset indent
for (i = 0; i < 1000; i++) {
xo_open_instance("item");
xo_emit_f(XOEF_RETAIN, "{:name} {:count/%d}\n",
name[i], count[i]);
}
.Ed
.Pp
In this example, the caller desires to clear the retained information.
.Bd -literal -offset indent
const char *fmt = "{:name} {:count/%d}\n";
Expand All @@ -97,12 +99,10 @@ In this example, the caller desires to clear the retained information.
xo_retain_clear(fmt);
.Ed
.Sh RETURN CODE
.Nm
returns a negative value on error. If the
.Nm XOF_COLUMNS
flag has been turned on for the specific handle using
.Xr xo_set_flags 3 ,
then the number of display columns consumed by the output will be returned.
The return values for these functions is identical to those of their
traditional counterparts. See
.Xr xo_emit 3
for details.
.Sh SEE ALSO
.Xr xo_emit 3 ,
.Xr xo_open_container 3 ,
Expand Down

0 comments on commit b80549c

Please sign in to comment.