www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/08/21/17:13:33

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: <DDBHEv DOT HFu AT jade DOT mv DOT net> <410ib1$qtl AT mark DOT ucdavis DOT edu> <iz03 DOT 808764412 AT jove> <DDJFx5 DOT 9qp AT jade DOT mv DOT net>
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 <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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019