Loading...
string/swab.3 Libc-498 Libc-262
--- Libc/Libc-498/string/swab.3
+++ Libc/Libc-262/string/swab.3
@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     @(#)swab.3	8.1 (Berkeley) 6/4/93
-.\" $FreeBSD: src/lib/libc/string/swab.3,v 1.7 2002/08/30 21:18:39 robert Exp $
+.\" $FreeBSD: src/lib/libc/string/swab.3,v 1.6 2001/10/01 16:09:00 ru Exp $
 .\"
 .Dd June 4, 1993
 .Dt SWAB 3
@@ -41,48 +41,26 @@
 .Sh LIBRARY
 .Lb libc
 .Sh SYNOPSIS
-.In unistd.h
+.In string.h
 .Ft void
-.Fo swab
-.Fa "const void *restrict src"
-.Fa "void *restrict dest"
-.Fa "ssize_t nbytes"
-.Fc
+.Fn swab "const void *src" "void *dst" "size_t len"
 .Sh DESCRIPTION
 The function
 .Fn swab
 copies
-.Fa nbytes
+.Fa len
 bytes from the location referenced by
 .Fa src
 to the location referenced by
-.Fa dest ,
+.Fa dst ,
 swapping adjacent bytes.
 .Pp
 The argument
-.Fa nbytes
+.Fa len
 must be an even number.
-.Sh LEGACY SYNOPSIS
-.Fd #include <string.h>
-.Pp
-.Ft void
-.br
-.Fo swab
-.Fa "const void *restrict src"
-.Fa "void *restrict dest"
-.Fa "size_t nbytes"
-.Fc ;
-.Pp
-The include file
-.In string.h
-is necessary for this function.
-The type of
-.Fa nbytes
-has changed.
 .Sh SEE ALSO
 .Xr bzero 3 ,
-.Xr memset 3 ,
-.Xr compat 5
+.Xr memset 3
 .Sh HISTORY
 A
 .Fn swab