home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / mac / programm / 20557 < prev    next >
Encoding:
Text File  |  1993-01-03  |  650 b   |  24 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!spool.mu.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!csus.edu!netcom.com!jimlynch
  3. From: jimlynch@netcom.com (Jim Lynch)
  4. Subject: Re: argc and argv in Think C
  5. Message-ID: <1993Jan3.114910.20977@netcom.com>
  6. Keywords: Think vs. ANSI C
  7. Organization: Netcom Online Communications Services (408-241-9760 login: guest)
  8. References: <1i527bINNk39@gap.caltech.edu>
  9. Distribution: NA
  10. Date: Sun, 3 Jan 1993 11:49:10 GMT
  11. Lines: 11
  12.  
  13. Just use it.
  14.  
  15. The way you define main() is:
  16.  
  17. void main(int argc, char *argv[])
  18. {
  19.     ...
  20. }
  21.  
  22. The one difference I found is that the name of the program does not show up
  23. in argv[0].
  24.