home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!caen!destroyer!cs.ubc.ca!duvel.cs.ubc.ca!not-for-mail
- From: hassan@cs.ubc.ca (Moustafa Hassan)
- Newsgroups: comp.lang.c
- Subject: Is this ANSI C?
- Date: 7 Nov 1992 15:52:29 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Lines: 18
- Message-ID: <1dhkrtINNj99@duvel.cs.ubc.ca>
- NNTP-Posting-Host: duvel.cs.ubc.ca
- Keywords: A bet
-
- #include <stdio.h>
- void main(void)
- {
- printf("hello world\n");
- }
-
- To settle a dispute, would someone please tell me whether the above
- is ANSI C. I claim that 'main' (according to the pure ANSI standard)
- must return an integer value, but nonetheless, some non-purists claim
- that the above is ANSI. Please do not respond via email; I want
- my opponent (8^) to be able to see all the messages.
-
- Thanks,
- ********************************************************************
- * Moustafa Hassan | *
- * hassan@cs.ubc.ca | Political correctness is a euphemism *
- * TEL/FAX: (604) 535-2826 | for intellectual stagnation. *
- ********************************************************************
-