🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #4826

Re: Warning bij matrix als arg in C

#4826
From: Michael De Nil
Date: Mon, 30 Jun 2003 11:49
37 lines
1997 bytes
On Mon, 30 Jun 2003, Aquila wrote:

> Michael De Nil wrote:
>
> > hey
> >
> > ik heb volgende code:
> >
> > ...
> > #define MAX_INPUT 40
> > int fetch_vars(char *host, char *user, char *pass, char *database, char
> > *type, char **subtype);
> > ...
> >     char subtype[10][MAX_INPUT];
> > ...
> >         err = fetch_vars(host, user, pass, database, type, subtype);
> > ...
> >
> >
> > input.c:29: warning: passing arg 6 of `fetch_vars' from incompatible
> > pointer type
> >
> Mij lijkt het dat je een verkeerd type geeft: subtype is array van char, dus
> char*, en in je functie declareer je dat argument als char**.
>

bedoeling is dat subtype een array van strings is => array van array van
chars...


alvast bedankt
michael

--

Michael De Nil --- michael@flex-it.be
Linux lisa.flex-it.be running 129 days
Technical Details
Message-ID: <Pine.LNX.4.56.0306301355130.13448@lisa.flex-it.be>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!aotearoa.belnet.be!news.belnet.be!ossa.telenet-ops.be!hebe.telenet-ops.be.POSTED!not-for-mail
References: <Pine.LNX.4.56.0306301141460.13448@lisa.flex-it.be> <bdp54p$ani$1@reader08.wxs.nl>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcea4,6700c5a202c24cdb
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2003-06-30 05:16:06 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!aotearoa.belnet.be!news.belnet.be!ossa.telenet-ops.be!hebe.telenet-ops.be.POSTED!not-for-mail
Newsgroups: be.comp.programming
From: Michael De Nil <michael@flex-it.be>
X-X-Sender: flecxie@lisa.flex-it.be
Subject: Re: Warning bij matrix als arg in C
In-Reply-To: <bdp54p$ani$1@reader08.wxs.nl>
Message-ID: <Pine.LNX.4.56.0306301355130.13448@lisa.flex-it.be>
References: <Pine.LNX.4.56.0306301141460.13448@lisa.flex-it.be>
 <bdp54p$ani$1@reader08.wxs.nl>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Lines: 37
Date: Mon, 30 Jun 2003 11:49:33 GMT
NNTP-Posting-Host: 213.119.201.138
X-Complaints-To: abuse@telenet.be
X-Trace: hebe.telenet-ops.be 1056973773 213.119.201.138 (Mon, 30 Jun 2003 13:49:33 CEST)
NNTP-Posting-Date: Mon, 30 Jun 2003 13:49:33 CEST
Organization: Telenet Internet