home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!spool.mu.edu!agate!ames!pacbell.com!tandem!UB.com!pippen.ub.com!rfries
- From: rfries@sceng.ub.com (Robert Fries)
- Subject: Re: should main be prototyped?
- Message-ID: <rfries.170@sceng.ub.com>
- Sender: news@pippen.ub.com (The Daily News)
- Nntp-Posting-Host: 128.203.1.151
- Organization: Ungermann Bass
- References: <1ivj3nINNa5v@shelley.u.washington.edu>
- Date: Tue, 12 Jan 1993 23:31:10 GMT
- Lines: 27
-
- In article <1ivj3nINNa5v@shelley.u.washington.edu> chuckb@stein.u.washington.edu (Charles Bass) writes:
-
- >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
-
- I don't think it matters, unless your program calls main() itself.
-
- Robert
-
- //////////////////////////////////////////////////////////////////////////
- Robert Fries
- Ungermann-Bass Inc.
-
- DISCLAIMER:
- Opinions contained herein are my own, and are not necessarily those
- of Ungermann-Bass.
- //////////////////////////////////////////////////////////////////////////
-