Commit | Line | Data |
---|---|---|
d720b6e8 KB |
1 | .\" Copyright (c) 1990 The Regents of the University of California. |
2 | .\" All rights reserved. | |
3 | .\" | |
4 | .\" %sccs.include.redist.man% | |
5 | .\" | |
7b0a190c | 6 | .\" @(#)swab.3 6.3 (Berkeley) %G% |
55ccc74b | 7 | .\" |
0326c0b8 | 8 | .TH SWAB 3 "" |
55ccc74b | 9 | .AT 3 |
f2278032 | 10 | .nf |
55ccc74b KM |
11 | .SH NAME |
12 | swab \- swap bytes | |
13 | .SH SYNOPSIS | |
14 | .nf | |
d720b6e8 | 15 | .ft B |
7b0a190c KB |
16 | #include <string.h> |
17 | ||
d720b6e8 KB |
18 | void |
19 | swab(const char *src, char *dst, size_t len); | |
20 | .ft R | |
55ccc74b KM |
21 | .fi |
22 | .SH DESCRIPTION | |
d720b6e8 KB |
23 | The function |
24 | .I swab | |
55ccc74b | 25 | copies |
d720b6e8 KB |
26 | .I len |
27 | bytes from the location referenced by | |
28 | .I src | |
29 | to the location referenced by | |
30 | .IR dst , | |
31 | swapping adjacent bytes. | |
32 | .PP | |
33 | .I Len | |
55ccc74b | 34 | should be even. |
d720b6e8 KB |
35 | .SH SEE ALSO |
36 | bzero(3), memset(3) |