endians
John Esak
john at valar.com
Mon Nov 28 17:30:17 PST 2005
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