delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/08/12:03:24

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: char **argv vs. char *argv[]
Date: Sun, 08 Jun 1997 11:28:13 +0000
Organization: Two pounds of chaos and a pinch of salt
Lines: 16
Message-ID: <339A974D.64BE@cs.com>
References: <5ndap9$mgd AT freenet-news DOT carleton DOT ca>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp108.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Paul Derbyshire wrote:
> 
> I've seen char **argv and char *argv[] and am curious which is correct. Or
> are either correct?

They are both technically correct.  I have heard of some compilers that
barf when you use char *argv[], although I have never had this happen to
me.

-- 
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I  |     mailto:fighteer AT cs DOT com     |
|    *  Proud user of DJGPP!  *    |   http://www.cs.com/fighteer   |
|    ObJoke:  If Bill Gates were a robber, not only would he        |
|     shoot you, but he'd send you a bill for the bullets.          |
---------------------------------------------------------------------

- Raw text -


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