> What is the difference between odd/even and
high/low?
>>As it turns out, it's not an odd-even split I need; It's
>> high-byte/low-byte split.
On Mon, 31 Mar 2003, Eric Smith wrote:
On a big-endian processor, the high byte is the even
byte, and the
low byte is the odd byte.
On a little-endian processor, it's the other way around.
... and if we are using a little-endian machine to split a file made from
big-endian contents, ...
Well, we either need FOUR different programs: odd/even, even/odd,
high/low, and low/high. :-)
OR, one program, and rename the files appropriately after splitting them.
On the code that I posted earlier, there is one significant error:
FILE *FPIN, FPO1, FPO2;
needs to be:
FILE *FPIN, *FPO1, *FPO2;
Also, some operating systems will require filenames (including STDIO.H)
to be in lower case, and few compilers will require FILE.H.
--
Grumpy Ol' Fred cisin(a)xenosoft.com