| delorie.com/archives/browse.cgi | search |
| From: | Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: I'm having some problems when using the special parameters for main() |
| Date: | 8 Jun 2000 10:15:16 GMT |
| Organization: | Aachen University of Technology (RWTH) |
| Lines: | 17 |
| Message-ID: | <8hnrnk$blc$1@nets3.rz.RWTH-Aachen.DE> |
| References: | <01BFD0CA DOT CA780E20 AT mdm124 DOT plug-in DOT com DOT br> |
| NNTP-Posting-Host: | acp3bf.physik.rwth-aachen.de |
| X-Trace: | nets3.rz.RWTH-Aachen.DE 960459316 11948 137.226.32.75 (8 Jun 2000 10:15:16 GMT) |
| X-Complaints-To: | abuse AT rwth-aachen DOT de |
| NNTP-Posting-Date: | 8 Jun 2000 10:15:16 GMT |
| Originator: | broeker@ |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Marcelo Juchem <mj-me AT plug-in DOT com DOT br> wrote:
> Please, could you tell-me what am I doing wrong?
[...]
> int main(int argc,char **argv)
> {
> int c;
> printf("\n ");
> for(c=1;c<argc-1;c++)
> printf("%s ",argc[c]);
^^^^^^^
Write argv[c], (note the 'v') there and things will start to work.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |