Subject: Re: bswap{16,32,64} in libutil ?
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: Klaus Klein <kleink@ira.uka.de>
List: tech-userlevel
Date: 03/06/1998 18:23:05
Manuel Bouyer <bouyer@antioche.lip6.fr> 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.