home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / c / 19612 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.3 KB  |  40 lines

  1. Newsgroups: comp.lang.c
  2. 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
  3. From: rfries@sceng.ub.com (Robert Fries)
  4. Subject: Re: should main be prototyped?
  5. Message-ID: <rfries.170@sceng.ub.com>
  6. Sender: news@pippen.ub.com (The Daily News)
  7. Nntp-Posting-Host: 128.203.1.151
  8. Organization: Ungermann Bass
  9. References: <1ivj3nINNa5v@shelley.u.washington.edu>
  10. Date: Tue, 12 Jan 1993 23:31:10 GMT
  11. Lines: 27
  12.  
  13. In article <1ivj3nINNa5v@shelley.u.washington.edu> chuckb@stein.u.washington.edu (Charles Bass) writes:
  14.  
  15. >Someone asked me if main should be prototyped today and I
  16. >couldn't answer because of the following conflict in my
  17. >prototyping habits:
  18.  
  19. >1) All functions should be prototyped.
  20. >2) I've never seen a prototype for main. (not found grepping the
  21. >   .h files or in my 2 years of programming)
  22.  
  23. >For code that should be ANSI/portable should a prototype be
  24. >used for main?
  25.  
  26. >chuckb
  27.  
  28. I don't think it matters, unless your program calls main() itself.
  29.  
  30. Robert
  31.  
  32. //////////////////////////////////////////////////////////////////////////
  33. Robert Fries
  34. Ungermann-Bass Inc.
  35.  
  36. DISCLAIMER:
  37.     Opinions contained herein are my own, and are not necessarily those
  38.     of Ungermann-Bass.
  39. //////////////////////////////////////////////////////////////////////////
  40.