One little endian question
Kenneth Brody
kenbrody at bestweb.net
Mon Mar 3 08:49:03 PST 2008
Quoting Jeff Harrison (Mon, 3 Mar 2008 07:37:33 -0800 (PST)):
> --- Kenneth Brody <kenbrody at bestweb.net> wrote:
[...]
>> Of course, she has the advantage of reading a screen file, which has
>> a known "magic number" at the start of the file header. If you don't
>> mind a little bit of overhead, you could read the header of a known
>> screen (you could use @FI and @SN) to determine the byte order. Do
>> you have a copy of her toolkit?
[...]
>
> Good point - for some reason I was thinking that I
> couldn't rely on a format file that I provided - but
> of course anyone running big-endian will need to run
> swap-cpu anyway - so that will work.
Well, if you're on a big-endian system, the screen will be big-endian. I'm
not sure what swapcpu has to do with things.
> But, looking at a new @cd should work too, right?
It will fail every 256 days, the next one being 1-May-2008. (I leave it
as an exercise to the reader to figure out why.)
--
KenBrody at BestWeb dot net spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com
More information about the Filepro-list
mailing list