LongSwap
Reverses all 4 bytes of a long integer or long unsigned
#include <nwstring.h>
long LongSwap (
long unswappedLong);
Returns the reversed long integer.
An application can call LongSwap to reverse the high-low order of a long integer being sent or received. The 80x86 family of processors store long integers in low-high order. Since some of the network functions require long integers to be in high-low order, long integers must be converted before they are sent or after they are received.