xref: /original-bsd/lib/libc/string/swab.3 (revision a6b493b4)
Copyright (c) 1990 The Regents of the University of California.
All rights reserved.

%sccs.include.redist.man%

@(#)swab.3 6.3 (Berkeley) 05/17/90

SWAB 3 ""
.AT 3
NAME
swab - swap bytes
SYNOPSIS
#include <string.h>

void
swab(const char *src, char *dst, size_t len);
DESCRIPTION
The function swab copies len bytes from the location referenced by src to the location referenced by dst , swapping adjacent bytes.

Len should be even.

SEE ALSO
bzero(3), memset(3)