www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/06/28/23:41:20

Xref: news-dnh.mv.net comp.os.msdos.djgpp:669
Path: news-dnh.mv.net!mv!news.sprintlink.net!howland.reston.ans.net!swrinde!sgigate.sgi.com!genmagic!goonsquad.spies.com!uuwest!alcyone!max
From: max AT alcyone DOT darkside DOT com (Erik Max Francis)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: mysterious error -- Need Help!
Date: Tue, 27 Jun 95 07:38:05 PDT
References: <3slvqb$9b3 AT news DOT rwth-aachen DOT de>
Organization: &tSftDotIotE
Lines: 16
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

softbrek AT hathi DOT informatik DOT rwth-aachen DOT de (Hans-Bernhard Broeker) writes:

> And, in addition to that, you should change your for loop to read
> 
> 	for (c=0; c < argc; c++)
> 
> because, like all arrays in C, **argv is zero-based.

Except that, in ANSI C, argv[0] is the name of the program, and argc 
is always >= 1.


Erik Max Francis, &tSftDotIotE ...!uuwest!alcyone!max max AT alcyone DOT darkside DOT com
San Jose, CA   GIGO, Omega, Psi, Universe   ICBM:  37 20 07 N  121 53 38 W  _
H.3`S,3,P,3$S,#$Q,C`Q,3,P,3$S,#$Q,3`Q,3,P,C$Q,#(Q.#`-"C`-  ftmfbs ccpm mc2 / \
Omnia quia sunt, lumina sunt.  ("All things that are, are lights.")   -><- \_/

- Raw text -


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