summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/vis.3
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2000-07-03 08:31:02 +0000
committersheldonh <sheldonh@FreeBSD.org>2000-07-03 08:31:02 +0000
commitde3d6e2b9e32d4e021ac9c297fb54231e6a1b60c (patch)
treecd7264fa4e4ec70c6ce22401ee47fcc62f3803c0 /lib/libc/gen/vis.3
parent63172fd7cd8a304f53cb3f0342b325a2be8f7a46 (diff)
downloadFreeBSD-src-de3d6e2b9e32d4e021ac9c297fb54231e6a1b60c.zip
FreeBSD-src-de3d6e2b9e32d4e021ac9c297fb54231e6a1b60c.tar.gz
Remove trailing whitespace only.
Diffstat (limited to 'lib/libc/gen/vis.3')
-rw-r--r--lib/libc/gen/vis.326
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/libc/gen/vis.3 b/lib/libc/gen/vis.3
index af1b96e..18c4344 100644
--- a/lib/libc/gen/vis.3
+++ b/lib/libc/gen/vis.3
@@ -44,9 +44,9 @@
.Fd #include <vis.h>
.Ft char *
.Fn vis "char *dst" "int c" "int flag" "int nextc"
-.Ft int
+.Ft int
.Fn strvis "char *dst" "const char *src" "int flag"
-.Ft int
+.Ft int
.Fn strvisx "char *dst" "const char *src" "size_t len" "int flag"
.Sh DESCRIPTION
The
@@ -62,11 +62,11 @@ needs no encoding, it is copied in unaltered. The string is
null terminated, and a pointer to the end of the string is
returned. The maximum length of any encoding is four
characters (not including the trailing
-.Dv NUL ) ;
+.Dv NUL ) ;
thus, when
encoding a set of characters into a buffer, the size of the buffer should
be four times the number of characters encoded, plus one for the trailing
-.Dv NUL .
+.Dv NUL .
The flag parameter is used for altering the default range of
characters considered for encoding and for altering the visual
representation.
@@ -91,7 +91,7 @@ function encodes characters from
.Fa src
up to the
first
-.Dv NUL .
+.Dv NUL .
The
.Fn strvisx
function encodes exactly
@@ -111,14 +111,14 @@ must be four times the number
of characters encoded from
.Fa src
(plus one for the
-.Dv NUL ) .
+.Dv NUL ) .
Both
forms return the number of characters in dst (not including
the trailing
-.Dv NUL ) .
+.Dv NUL ) .
.Pp
The encoding is a unique, invertible representation composed entirely of
-graphic characters; it can be decoded back into the original form using
+graphic characters; it can be decoded back into the original form using
the
.Xr unvis 3
or
@@ -127,7 +127,7 @@ functions.
.Pp
There are two parameters that can be controlled: the range of
characters that are encoded, and the type
-of representation used.
+of representation used.
By default, all non-graphic characters.
except space, tab, and newline are encoded.
(See
@@ -137,23 +137,23 @@ alter this:
.Bl -tag -width VIS_WHITEX
.It Dv VIS_SP
Also encode space.
-.It Dv VIS_TAB
+.It Dv VIS_TAB
Also encode tab.
.It Dv VIS_NL
Also encode newline.
-.It Dv VIS_WHITE
+.It Dv VIS_WHITE
Synonym for
.Dv VIS_SP
\&|
.Dv VIS_TAB
\&|
.Dv VIS_NL .
-.It Dv VIS_SAFE
+.It Dv VIS_SAFE
Only encode "unsafe" characters. Unsafe means control
characters which may cause common terminals to perform
unexpected functions. Currently this form allows space,
tab, newline, backspace, bell, and return - in addition
-to all graphic characters - unencoded.
+to all graphic characters - unencoded.
.El
.Pp
There are three forms of encoding.
OpenPOWER on IntegriCloud