Re: I forgot... Re: Big-endian/little-endian

1998-08-18 Thread Wojciech Zabolotny
On Tue, 18 Aug 1998, Ossama Othman wrote: > Hi again, > > > // "number" is the size of the array being byte swapped > > swap4(void *dest, void *src, int number) { > > I forgot to mention that the code excerpt I posted was meant for swapping > variables that are 4 bytes in size, e.g. fl

I forgot... Re: Big-endian/little-endian

1998-08-18 Thread Ossama Othman
Hi again, > // "number" is the size of the array being byte swapped > swap4(void *dest, void *src, int number) { I forgot to mention that the code excerpt I posted was meant for swapping variables that are 4 bytes in size, e.g. floats and such. -Ossama