home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / c / 13652 < prev    next >
Encoding:
Internet Message Format  |  1992-09-14  |  905 b 

  1. Path: sparky!uunet!utcsri!geac!dmntor!dciem!r-node!pseudo!mjn
  2. From: mjn@pseudo.uucp (Murray Nesbitt)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: argv in main
  5. Message-ID: <MJN.92Sep14093436@pseudo.uucp>
  6. Date: 14 Sep 92 17:34:36 GMT
  7. References: <Sep.10.23.54.35.1992.4694@ruhets.rutgers.edu>
  8. Sender: mjn@pseudo.uucp (Murray Nesbitt)
  9. Organization: Private system in Toronto, ON
  10. Lines: 14
  11. In-Reply-To: ghe@ruhets.rutgers.edu's message of 11 Sep 92 03:54:35 GMT
  12.  
  13.  
  14. ghe@ruhets.rutgers.edu (Guangliang He) writes:
  15.  
  16. >According to the "C: A Reference Manual" (2nd Edition, by Harbison &
  17. >Steele), the argument argv[argc] of main(argc, argv) may be a null
  18. >pointer, but is not so in allimplementations. How safe is it to assume
  19. >argv[argc] == NULL ? Should I be cautious about this?
  20.  
  21. The ANSI C Standard requires that argv[argc] be a null pointer.
  22.  
  23. In my experience, most pre-ANSI implementations also do this.
  24.  
  25. -- 
  26. Murray
  27.