argv[] terminated by a NULL pointer?
Henry Spencer
henry at zoo.toronto.edu
Wed Jun 26 03:47:44 AEST 1991
In article <12187 at hub.ucsb.edu> angst at cs.ucsb.edu (Hopelessly in love w/Donna Reed) writes:
>I was always taught to use argc, and was of the belief that argv[] is
>not necessarily terminated by a NULL pointer.
Certain immensely ancient Unixes terminated it with a different magic cookie.
This is probably the origin of any weasel-wording on the subject. All modern
systems written by sensible people :-) have the NULL, and ANSI C demands it.
--
"We're thinking about upgrading from | Henry Spencer @ U of Toronto Zoology
SunOS 4.1.1 to SunOS 3.5." | henry at zoo.toronto.edu utzoo!henry
More information about the Comp.lang.c
mailing list