void swab ( char * src, char * dest, int num );
Swaps num bytes of src by pairs and stores the result in dest. Useful to change byte order (lower order byte becomes higher, and higher becomes lower) in order to exchange binary data with a machine that uses a different byte order on 2-bytes data types.
Not defined in ANSI-C. Supported by some compilers.
/* swab example */
/* global arrays: destination initialized with zeros */
char source  = "ABCDEF";
char destination ;
swab (source, destination, 6);
printf ("swab: %s -> %s\n", source, destination);
atof, strtol, strtoul