MESSAGE
DATE | 2004-09-09 |
FROM | From: "Ruben"
|
SUBJECT | Subject: [hangout] Re: two dimensional arrays passed to functions
|
[This is an email copy of a Usenet post to "comp.lang.c"]
On Thu, 09 Sep 2004 00:42:57 -0400, Ruben wrote:
> out of deperation because when I defined it as > > char * insert(char table[255],int cols, char values) > > I keep getting no data passed. Actually, I originally defined this function as char * insert(char table[255],int cols, char **values)
Everything I'm reading seems to say I have to define this as char * insert(char table[255],int cols, char values[][256])
but main can be defined as int main (int argv, char **argc) without any problem.
This is driving me crazy because I could sware I did this on SCO compilers about 8 years ago without any trouble.
Ruben
<many strings I have beforehand.
I've defined one functions as
char * insert(char table[256],int cols, char values[3][256]);
out of deperation because when I defined it as
char * insert(char table[255],int cols, char values)
I keep getting no data passed.
char * insert(char table[256],int cols, char values * [3]);
Gets me only one arguement passed. I thought I used to do this all the time. In fact, main does this. I've loaded the entire source code I'm working with onto https://www.freedom-it.com/clinical.tgz ifd anyone wants to look. The code is using GTK 2.x and MYSQL 4.0x for anyone interested.
Ruben>> ____________________________ NYLXS: New Yorker Free Software Users Scene Fair Use - because it's either fair use or useless.... NYLXS is a trademark of NYLXS, Inc
|
|