]>
Commit | Line | Data |
---|---|---|
224c7076 A |
1 | --- swab.3 2003-05-20 15:23:55.000000000 -0700 |
2 | +++ swab.3.edit 2006-07-12 11:27:22.000000000 -0700 | |
3 | @@ -41,26 +41,48 @@ | |
4 | .Sh LIBRARY | |
5 | .Lb libc | |
6 | .Sh SYNOPSIS | |
7 | -.In string.h | |
8 | +.In unistd.h | |
9 | .Ft void | |
10 | -.Fn swab "const void * restrict src" "void * restrict dst" "size_t len" | |
11 | +.Fo swab | |
12 | +.Fa "const void *restrict src" | |
13 | +.Fa "void *restrict dest" | |
14 | +.Fa "ssize_t nbytes" | |
15 | +.Fc | |
16 | .Sh DESCRIPTION | |
17 | The function | |
18 | .Fn swab | |
19 | copies | |
20 | -.Fa len | |
21 | +.Fa nbytes | |
22 | bytes from the location referenced by | |
23 | .Fa src | |
24 | to the location referenced by | |
25 | -.Fa dst , | |
26 | +.Fa dest , | |
27 | swapping adjacent bytes. | |
28 | .Pp | |
29 | The argument | |
30 | -.Fa len | |
31 | +.Fa nbytes | |
32 | must be an even number. | |
33 | +.Sh LEGACY SYNOPSIS | |
34 | +.Fd #include <string.h> | |
35 | +.Pp | |
36 | +.Ft void | |
37 | +.br | |
38 | +.Fo swab | |
39 | +.Fa "const void *restrict src" | |
40 | +.Fa "void *restrict dest" | |
41 | +.Fa "size_t nbytes" | |
42 | +.Fc ; | |
43 | +.Pp | |
44 | +The include file | |
45 | +.In string.h | |
46 | +is necessary for this function. | |
47 | +The type of | |
48 | +.Fa nbytes | |
49 | +has changed. | |
50 | .Sh SEE ALSO | |
51 | .Xr bzero 3 , | |
52 | -.Xr memset 3 | |
53 | +.Xr memset 3 , | |
54 | +.Xr compat 5 | |
55 | .Sh HISTORY | |
56 | A | |
57 | .Fn swab |