date and time created 91/03/06 18:09:53 by bostic
[unix-history] / usr / src / lib / libc / string / swab.3
CommitLineData
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
12swab \- swap bytes
13.SH SYNOPSIS
14.nf
d720b6e8 15.ft B
7b0a190c
KB
16#include <string.h>
17
d720b6e8
KB
18void
19swab(const char *src, char *dst, size_t len);
20.ft R
55ccc74b
KM
21.fi
22.SH DESCRIPTION
d720b6e8
KB
23The function
24.I swab
55ccc74b 25copies
d720b6e8
KB
26.I len
27bytes from the location referenced by
28.I src
29to the location referenced by
30.IR dst ,
31swapping adjacent bytes.
32.PP
33.I Len
55ccc74b 34should be even.
d720b6e8
KB
35.SH SEE ALSO
36bzero(3), memset(3)