Mail Archives: djgpp/1995/08/21/17:13:33
In article <DDJFx5 DOT 9qp AT jade DOT mv DOT net>, Mat Hostetter <mat AT ardi DOT com> wrote:
>elric AT wheel DOT ucdavis DOT edu (Jeffrey Taylor) writes:
>>Is there any requirement for argv[1] to be dereferencable if argc == 1?
>Unfortunately, I don't have a copy of the ANSI C standard. But
>for what it's worth, _Harbison & Steele_, p. 359 says:
My copy of K&R (2nd/ANSI edition) says on page 115:
....additionally, the standard requires that argv[argc] be a null
pointer.
This means that if argc==1, argv[1]==NULL.
--
Chris Adams - cadams AT HiWAAY DOT net
Simulations Director & Team Leader
United States Space Camp/Academy - US Space & Rocket Center
Abandon all hope, ye who PRESS ENTER here.
- Raw text -