home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!utcsri!geac!dmntor!dciem!r-node!pseudo!mjn
- From: mjn@pseudo.uucp (Murray Nesbitt)
- Newsgroups: comp.lang.c
- Subject: Re: argv in main
- Message-ID: <MJN.92Sep14093436@pseudo.uucp>
- Date: 14 Sep 92 17:34:36 GMT
- References: <Sep.10.23.54.35.1992.4694@ruhets.rutgers.edu>
- Sender: mjn@pseudo.uucp (Murray Nesbitt)
- Organization: Private system in Toronto, ON
- Lines: 14
- In-Reply-To: ghe@ruhets.rutgers.edu's message of 11 Sep 92 03:54:35 GMT
-
-
- ghe@ruhets.rutgers.edu (Guangliang He) writes:
-
- >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?
-
- The ANSI C Standard requires that argv[argc] be a null pointer.
-
- In my experience, most pre-ANSI implementations also do this.
-
- --
- Murray
-