home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!news.u.washington.edu!stein.u.washington.edu!chuckb
- From: chuckb@stein.u.washington.edu (Charles Bass)
- Newsgroups: comp.lang.c
- Subject: should main be prototyped?
- Message-ID: <1ivj3nINNa5v@shelley.u.washington.edu>
- Date: 12 Jan 93 23:09:43 GMT
- Article-I.D.: shelley.1ivj3nINNa5v
- Organization: University of Washington
- Lines: 12
- NNTP-Posting-Host: stein.u.washington.edu
-
- Someone asked me if main should be prototyped today and I
- couldn't answer because of the following conflict in my
- prototyping habits:
-
- 1) All functions should be prototyped.
- 2) I've never seen a prototype for main. (not found grepping the
- .h files or in my 2 years of programming)
-
- For code that should be ANSI/portable should a prototype be
- used for main?
-
- chuckb
-