home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / c / 19604 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  799 b 

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!news.u.washington.edu!stein.u.washington.edu!chuckb
  2. From: chuckb@stein.u.washington.edu (Charles Bass)
  3. Newsgroups: comp.lang.c
  4. Subject: should main be prototyped?
  5. Message-ID: <1ivj3nINNa5v@shelley.u.washington.edu>
  6. Date: 12 Jan 93 23:09:43 GMT
  7. Article-I.D.: shelley.1ivj3nINNa5v
  8. Organization: University of Washington
  9. Lines: 12
  10. NNTP-Posting-Host: stein.u.washington.edu
  11.  
  12. Someone asked me if main should be prototyped today and I
  13. couldn't answer because of the following conflict in my
  14. prototyping habits:
  15.  
  16. 1) All functions should be prototyped.
  17. 2) I've never seen a prototype for main. (not found grepping the
  18.    .h files or in my 2 years of programming)
  19.  
  20. For code that should be ANSI/portable should a prototype be
  21. used for main?
  22.  
  23. chuckb
  24.