FboDigit
Member level 1
Hi all, I used to be good at programming in C but I didn't pratice since a lottt of years so I need a little ramp up
I want to parse an array but I am not able to do it and I feel really noob !!
Also if you have a better//easyer way to do it (with pointer or struct) I would really appreciate the help
Please help !!!
I want to parse an array but I am not able to do it and I feel really noob !!
Code:
[B]IN THE .h[/B]
...
void Test_I2C(int);
...
[B]IN THE .CPP[/B]
int *csv_array[5]; //is it good ???
int i;
for(i=0 ; i<sizeof(csv_array)/sizeof(*csv_array);i++) //this is good
{
useless code for the example
}
MyFunct(csv_array[i]); //is it good ?
void MyFunct(.......) ///what to put here
...
var = csv_array[1];
...
Also if you have a better//easyer way to do it (with pointer or struct) I would really appreciate the help
Please help !!!