endians

Jean-Pierre A. Radley appl at jpr.com
Mon Nov 28 13:40:13 PST 2005


Dennis Malen propounded (on Mon, Nov 28, 2005 at 04:07:45PM -0500):
| 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?

You screwed up at least three ways.

	1) you started a new thread, instead of replying on the thread
	   where Ken last wrote his little program.  WHY??

	2) you took out the spaces in Ken's printf() statement.  No big
	   deal, but it does decrease readability.

	3) you tried to run a C-source file as if it were a shell
	   script ???!?

Go back to your little corner and compile the program.

Given your track record on this list for bumbling, being unclear, and
constantly exerting stupendous efforts to make us believe you have the
brain of a flea, you're getting somewhere in that I'm actually and truly
beginning to believe that you *do* have the brain of a flea.

-- 
JP


More information about the Filepro-list mailing list