BIO is a C library which reads and writes binary data, by Greg Hood.
An option is included for handling data that was written or is to be read on a machine with the opposite byte ordering convention.
Copyright (c) 1996,1999 Pittsburgh Supercomputing Center This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Neither Carnegie Mellon University nor any of the authors assume any liability for damages, incidental or otherwise, caused by the installation or use of this software. CLINICAL APPLICATIONS ARE NOT RECOMMENDED, AND THIS SOFTWARE HAS NOT BEEN EVALUATED BY THE UNITED STATES FDA FOR ANY CLINICAL USE.
BIO is available in a C version.
I2_BINARY_TO_ASCII a C++ program which converts a file of short int (I2) data from binary to ASCII format.
Greg Hood, Pittsburgh Supercomputing Center.
You can go up one level to the C source codes.