M
MS
Hi,
I need some help with something which is a little over my pay grade.
The file which I must write has a header followed by a sequence of ints
each of which must be written as a 4 byte big-endian.
The comp.lang.c has advice on finding out whether your machine is
little-endian or big-endian (little-endian in my case) but not on how to
do the kind of operation I need to do.
I am sorry to say that I simply have no idea whatsoever how to write an
int to a file as a 4 byte big-endian. Can someone show me how please?
Many thanks.
I need some help with something which is a little over my pay grade.
The file which I must write has a header followed by a sequence of ints
each of which must be written as a 4 byte big-endian.
The comp.lang.c has advice on finding out whether your machine is
little-endian or big-endian (little-endian in my case) but not on how to
do the kind of operation I need to do.
I am sorry to say that I simply have no idea whatsoever how to write an
int to a file as a 4 byte big-endian. Can someone show me how please?
Many thanks.