endians
Dennis Malen
dmalen at malen.com
Mon Nov 28 13:07:45 PST 2005
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
More information about the Filepro-list
mailing list