home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / programm / 4628 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  889 b 

  1. Xref: sparky comp.unix.programmer:4628 comp.lang.c:13492
  2. Path: sparky!uunet!dziuxsolim.rutgers.edu!ruhets.rutgers.edu!ghe
  3. From: ghe@ruhets.rutgers.edu (Guangliang He)
  4. Newsgroups: comp.unix.programmer,comp.lang.c
  5. Subject: argv in main
  6. Keywords: argv, main(), NULL
  7. Message-ID: <Sep.10.23.54.35.1992.4694@ruhets.rutgers.edu>
  8. Date: 11 Sep 92 03:54:35 GMT
  9. Followup-To: comp.lang.c
  10. Organization: Rutgers Univ., New Brunswick, N.J.
  11. Lines: 13
  12.  
  13. It may be a FAQ, but I could not find it in the FAQ list.
  14.  
  15. According to the "C: A Reference Manual" (2nd Edition, by Harbison &
  16. Steele), the argument argv[argc] of main(argc, argv) may be a null
  17. pointer, but is not so in allimplementations. How safe is it to assume
  18. argv[argc] == NULL ? Should I be cautious about this?
  19.  
  20. Thanks for the info.
  21.  
  22. Email the answer please. I will summerize if there is enough interest.
  23.  
  24. Guangliang He
  25. ghe@physics.rutgers.edu
  26.