endians
Dennis Malen
dmalen at malen.com
Mon Nov 28 13:58:43 PST 2005
Jim,
I ran it as a shell script. I don't have a C Compiler on the RISC box.
Dennis
----- Original Message -----
From: "Jim Asman" <jlasman at telus.net>
To: <filepro-list at seaslug.org>
Sent: Monday, November 28, 2005 4:37 PM
Subject: Re: endians
>
>
> --------------- Original Message ---------------
> At 04:07P Mon Nov 28 2005, Dennis Malen wrote:
>
>> 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,
>
> Did you compile that with a C compiler or just try to run it
> as a shell script.
>
> The error sounds like a shell complaint rather than a compiler error.
>
>
> Jim
> --
> jlasman at telus.net Spectra Colour Services Ltd.
> Jim Asman 10221 144A Street
> Phone: (604)584-0977 Surrey, BC V3R 3P7
> Cell: (604)619-0977 CANADA
>
> _______________________________________________
> 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