home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.programmer:4628 comp.lang.c:13492
- Path: sparky!uunet!dziuxsolim.rutgers.edu!ruhets.rutgers.edu!ghe
- From: ghe@ruhets.rutgers.edu (Guangliang He)
- Newsgroups: comp.unix.programmer,comp.lang.c
- Subject: argv in main
- Keywords: argv, main(), NULL
- Message-ID: <Sep.10.23.54.35.1992.4694@ruhets.rutgers.edu>
- Date: 11 Sep 92 03:54:35 GMT
- Followup-To: comp.lang.c
- Organization: Rutgers Univ., New Brunswick, N.J.
- Lines: 13
-
- It may be a FAQ, but I could not find it in the FAQ list.
-
- According to the "C: A Reference Manual" (2nd Edition, by Harbison &
- Steele), the argument argv[argc] of main(argc, argv) may be a null
- pointer, but is not so in allimplementations. How safe is it to assume
- argv[argc] == NULL ? Should I be cautious about this?
-
- Thanks for the info.
-
- Email the answer please. I will summerize if there is enough interest.
-
- Guangliang He
- ghe@physics.rutgers.edu
-