diff options
Diffstat (limited to 'src/lib/libc/string/swab.3')
-rw-r--r-- | src/lib/libc/string/swab.3 | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/lib/libc/string/swab.3 b/src/lib/libc/string/swab.3 index 133c487bbd..5ebaa485e9 100644 --- a/src/lib/libc/string/swab.3 +++ b/src/lib/libc/string/swab.3 | |||
@@ -9,11 +9,7 @@ | |||
9 | .\" 2. Redistributions in binary form must reproduce the above copyright | 9 | .\" 2. Redistributions in binary form must reproduce the above copyright |
10 | .\" notice, this list of conditions and the following disclaimer in the | 10 | .\" notice, this list of conditions and the following disclaimer in the |
11 | .\" documentation and/or other materials provided with the distribution. | 11 | .\" documentation and/or other materials provided with the distribution. |
12 | .\" 3. All advertising materials mentioning features or use of this software | 12 | .\" 3. Neither the name of the University nor the names of its contributors |
13 | .\" must display the following acknowledgement: | ||
14 | .\" This product includes software developed by the University of | ||
15 | .\" California, Berkeley and its contributors. | ||
16 | .\" 4. Neither the name of the University nor the names of its contributors | ||
17 | .\" may be used to endorse or promote products derived from this software | 13 | .\" may be used to endorse or promote products derived from this software |
18 | .\" without specific prior written permission. | 14 | .\" without specific prior written permission. |
19 | .\" | 15 | .\" |
@@ -29,17 +25,16 @@ | |||
29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 25 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
30 | .\" SUCH DAMAGE. | 26 | .\" SUCH DAMAGE. |
31 | .\" | 27 | .\" |
32 | .\" from: @(#)swab.3 6.6 (Berkeley) 5/1/91 | 28 | .\" $OpenBSD: swab.3,v 1.7 2011/07/25 00:38:53 schwarze Exp $ |
33 | .\" $Id: swab.3,v 1.1.1.1 1995/10/18 08:42:23 deraadt Exp $ | ||
34 | .\" | 29 | .\" |
35 | .Dd May 1, 1991 | 30 | .Dd $Mdocdate: July 25 2011 $ |
36 | .Dt SWAB 3 | 31 | .Dt SWAB 3 |
37 | .Os | 32 | .Os |
38 | .Sh NAME | 33 | .Sh NAME |
39 | .Nm swab | 34 | .Nm swab |
40 | .Nd swap adjacent bytes | 35 | .Nd swap adjacent bytes |
41 | .Sh SYNOPSIS | 36 | .Sh SYNOPSIS |
42 | .Fd #include <string.h> | 37 | .Fd #include <unistd.h> |
43 | .Ft void | 38 | .Ft void |
44 | .Fn swab "const void *src" "void *dst" "size_t len" | 39 | .Fn swab "const void *src" "void *dst" "size_t len" |
45 | .Sh DESCRIPTION | 40 | .Sh DESCRIPTION |
@@ -55,12 +50,12 @@ swapping adjacent bytes. | |||
55 | .Pp | 50 | .Pp |
56 | The argument | 51 | The argument |
57 | .Fa len | 52 | .Fa len |
58 | must be even number. | 53 | must be an even number. |
59 | .Sh SEE ALSO | 54 | .Sh SEE ALSO |
60 | .Xr bzero 3 , | 55 | .Xr bzero 3 , |
61 | .Xr memset 3 | 56 | .Xr memset 3 |
62 | .Sh HISTORY | 57 | .Sh HISTORY |
63 | A | 58 | The |
64 | .Fn swab | 59 | .Fn swab |
65 | function appeared in | 60 | function first appeared in |
66 | .At v7 . | 61 | .At v7 . |