endians
Dennis Malen
dmalen at malen.com
Tue Nov 29 10:16:36 PST 2005
John,
That's correct. I want to make sure that the new box has little endians.
Someone mentioned on the list a while back that if the bus is the same then
I'm OK.
Dennis
----- Original Message -----
From: "John Esak" <john at valar.com>
To: "Dennis Malen" <dmalen at malen.com>
Cc: "Fplist (E-mail)" <filepro-list at seaslug.org>
Sent: Monday, November 28, 2005 8:30 PM
Subject: RE: endians
> Dennis,
> I can tell you for certain the byte order of your system is opposite to
> that
> of Intel boxes. Why are you uncertain of this? I had to swap everything to
> send you the "pig" files... at least some of them, remember?
> John
>
> Bill's perl -V:bytorder
>
> will give you 1234 on any Intel box. On yours, it won't. :-)
>
> John
>
>
>
>
>> -----Original Message-----
>> From: filepro-list-bounces at lists.celestial.com
>> [mailto:filepro-list-bounces at lists.celestial.com]On Behalf Of Dennis
>> Malen
>> Sent: Monday, November 28, 2005 4:08 PM
>> To: filepro-list at lists.celestial.com
>> Subject: endians
>>
>>
>> Ken,
>>
>> Took my family to South Beach for most of last week. Just got
>> back and made
>> the changes you suggested.
>>
>> I received the following message:
>>
>> endiantest[3]: 0403-057 Syntax error at line 6 : `(' is not expected.
>>
>> The follwoing is what I used:
>>
>> #include <stdio.h>
>>
>> main()
>> {
>> long l=0x11223344;
>> char *pt=(char*)&l;
>>
>> printf("%02x%02x%02x%02x\n",pt[0],pt[1],pt[2],pt[3]);
>> }
>>
>> The two places I changed to an el were:
>>
>> 1. long l
>> 2. &l;
>>
>> The rest are ones.
>>
>> Did I miss an el that you wanted me to change?
>>
>> Dennis Malen
>> 516.479.5912
>>
>>
>> _______________________________________________
>> Filepro-list mailing list
>> Filepro-list at lists.celestial.com
>> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
>
>
>
More information about the Filepro-list
mailing list