delorie.com/archives/browse.cgi | search |
From: | bd733 AT rgfn DOT epcc DOT edu (Jason M. Daniels) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: char **argv vs. char *argv[] |
Date: | 10 Jun 1997 16:48:40 GMT |
Organization: | The Rio Grande Free-Net, El Paso Community College, El Paso, TX |
Lines: | 13 |
Message-ID: | <5nk0h8$9c6@news.epcc.edu> |
References: | <422564B1 DOT 004E9870 DOT 00 AT aks DOT com> <339cffcc DOT 700128 AT news DOT nl DOT net> |
NNTP-Posting-Host: | rgfn.epcc.edu |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Hans Bezemer (hbezemer AT vsngroep DOT nl) wrote: > Is it also true that argv[argc] == NULL > with all compilers? According to the ANSI\ISO standard, you may always access one element past the end of an array. Since argc is always one bigger than the highest element of argv, argv[argc] will indeed always work. -- Jason Daniels -- bd733 AT rgfn DOT epcc DOT edu ---> BELIEVE THE LIE <--- Linux: The choice of a GNU generation. Winblows 95: The world's best-selling computer virus.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |