diff options
author | sheldonh <sheldonh@FreeBSD.org> | 2000-07-03 08:31:02 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 2000-07-03 08:31:02 +0000 |
commit | de3d6e2b9e32d4e021ac9c297fb54231e6a1b60c (patch) | |
tree | cd7264fa4e4ec70c6ce22401ee47fcc62f3803c0 | |
parent | 63172fd7cd8a304f53cb3f0342b325a2be8f7a46 (diff) | |
download | FreeBSD-src-de3d6e2b9e32d4e021ac9c297fb54231e6a1b60c.zip FreeBSD-src-de3d6e2b9e32d4e021ac9c297fb54231e6a1b60c.tar.gz |
Remove trailing whitespace only.
-rw-r--r-- | lib/libc/gen/unvis.3 | 10 | ||||
-rw-r--r-- | lib/libc/gen/vis.3 | 26 |
2 files changed, 18 insertions, 18 deletions
diff --git a/lib/libc/gen/unvis.3 b/lib/libc/gen/unvis.3 index 5a52737..7f1e25a 100644 --- a/lib/libc/gen/unvis.3 +++ b/lib/libc/gen/unvis.3 @@ -43,11 +43,11 @@ .Lb libc .Sh SYNOPSIS .Fd #include <vis.h> -.Ft int +.Ft int .Fn unvis "char *cp" "int c" "int *astate" "int flag" -.Ft int +.Ft int .Fn strunvis "char *dst" "const char *src" -.Ft int +.Ft int .Fn strunvisx "char *dst" "const char *src" "int flag" .Sh DESCRIPTION The @@ -61,7 +61,7 @@ by the .Xr vis 3 function, back into the original form. Unvis is called with successive characters in -.Ar c +.Ar c until a valid sequence is recognized, at which time the decoded character is available at the character pointed to by @@ -123,7 +123,7 @@ has several return codes that must be handled properly. They are: .Bl -tag -width UNVIS_VALIDPUSH .It Li \&0 (zero) Another character is necessary; nothing has been recognized yet. -.It Dv UNVIS_VALID +.It Dv UNVIS_VALID A valid character has been recognized and is available at the location pointed to by cp. .It Dv UNVIS_VALIDPUSH 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. |