Xref: news-dnh.mv.net comp.os.msdos.djgpp:1694 Path: news-dnh.mv.net!mv!news.sprintlink.net!HiWAAY.net!HiWAAY.net!not-for-mail From: cadams AT HiWAAY DOT net (Chris Adams) Newsgroups: comp.os.msdos.djgpp Subject: Re: BUG IN V2?? Date: 19 Aug 1995 20:15:49 -0500 Organization: HiWAAY Lines: 17 References: <410ib1$qtl AT mark DOT ucdavis DOT edu> Nntp-Posting-Host: fly.hiwaay.net To: djgpp AT sun DOT soe DOT clarkson DOT edu Dj-Gateway: from newsgroup comp.os.msdos.djgpp In article , Mat Hostetter 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.