tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Lorne J. Covington" <ljc () soa ! com>
To: tru64-unix-managers
Subject: big endian C fread routine?
Date: Tue, 10 Sep 1996 20:59:59 +0000	[thread overview]
Message-ID: <96076339121396.tru64-unix-managers.marc@archive.invalid> (raw)

We have a set of FORTRAN codes which are set up to function in a heterogeneous
workstation enviroment.   The OSF port of the codes can share binary information
with other platforms as long as the codes are compiled with the f77 option
"-convert big_endian" option.

A problem arises in that one of our X11 programs, which has been written in C,
needs to read some of these FORTRAN written big endian binary files.  We can always
assume that the files are in big endian format.
Does anyone have a set of filters, or a big endian "fread", that we can include in the C
source to do the big endian to little endian conversion?

Thanks

-- 
Lorne J. Covington, Senior Nuclear Engineer        |Email: ljc@soa.com
Studsvik of America                                |(617) 965-1819 (voice)
1087 Beacon St, Suite 301                          |(617) 965-7549 (fax)
Newton, MA 02159                                   |

                 reply	other threads:[~1996-09-10 20:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox