endians

Jim Asman jlasman at telus.net
Mon Nov 28 13:37:39 PST 2005



--------------- 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



More information about the Filepro-list mailing list