Hi,
there are days...
OK, my problem is like this :
I'm passing an array of char (cArray[50][20]) to a function which is declared like this : MyFunc(char *pArray). with pArray I'd like to access the array-items, which it does if I increment it by 20, but then it only gives me the first character of each array-item. To correct this, I use
strcpy(..) and all goes fine, but to me it looks like a really bad solution.
Someone has an idea to improve this ?
thanks
there are days...
OK, my problem is like this :
I'm passing an array of char (cArray[50][20]) to a function which is declared like this : MyFunc(char *pArray). with pArray I'd like to access the array-items, which it does if I increment it by 20, but then it only gives me the first character of each array-item. To correct this, I use
strcpy(..) and all goes fine, but to me it looks like a really bad solution.
Someone has an idea to improve this ?
thanks