S
Salmen
hello,
i have problems passing a 2-dimensional array of char to a function. The
source below is generating an error.
So does anybody know, which mistake I made?
void myfkt(char** ppWord){
long i,j;
for(i=0;i<4;i++){
for(j=0;j<6;j++){
putchar(ppWord[j]);
}
}
}
void main(void){
long i;
char word[4][6]={{"hallo"},{"\n\r"},{"hallo"},{"\n\r"}};
myfkt(word);
}
i have problems passing a 2-dimensional array of char to a function. The
source below is generating an error.
So does anybody know, which mistake I made?
void myfkt(char** ppWord){
long i,j;
for(i=0;i<4;i++){
for(j=0;j<6;j++){
putchar(ppWord[j]);
}
}
}
void main(void){
long i;
char word[4][6]={{"hallo"},{"\n\r"},{"hallo"},{"\n\r"}};
myfkt(word);
}