Subject: Re: bswap{16,32,64} in libutil ?
To: Manuel Bouyer <>
From: Klaus Klein <>
List: tech-userlevel
Date: 03/06/1998 18:23:05
Manuel Bouyer <> writes:

> On Mar 6, Klaus Klein wrote
> > POSIX doesn't, and the single facility offered by XPG4.2 that fits
> > into this class is swab().
> I've seen such functions in restore(8), which has its own implementation.
> Could you give more details about swab() ?
> Is it worth implementing it in a library ?

It has been part of our libc since the very beginning, see
swab(3). :-)  Having an entire set of swap functions to operate on
`byte streams' might be useful, though.