Mail Archives: djgpp/1997/07/21/01:32:47
Message-ID: | <33D1C704.64724AEC@gapeach.com>
|
Date: | Sun, 20 Jul 1997 04:06:28 -0400
|
From: | Jacob Martin <jake AT gapeach DOT com>
|
Reply-To: | jake AT gapeach DOT com
|
MIME-Version: | 1.0
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | passin a ptr to a 2D array
|
NNTP-Posting-Host: | ip182.iainc.net
|
Lines: | 20
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I just can't seem to get the damn pointer procedural stuff to work:
So, what's the correct way to set a pointer to the first address of
mapmake, and then pass it to a function...
Please fill in the blanks for me:
void passit(int ___); /* pass the pointer,Do I use one or two *'s?
int main() {
int mapmake[100][100], __mmp; /*???????????????*/
mmp=&mapmake[0][0]; /*????????????*/
passit(int __mmp);
}
void passit(int __) {
printf("whoopie!");
}
- Raw text -