Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
I have several 2D arrays where the "horizontal" lengths vary - for example:
char a[10][20]; char b[10][30]; char c[10][40];
I need to be able to call a function and pass the entire horizontal array from any of the 2d arrays. for example:
send(a[8]); send(b[6]); send(c[5]);
The function send() then needs to do a loop and process each of the 20, 30 or 40 chars that were passed to it. My data seems to be getting garbled when I try this.
Sorry if this doesn't make sense. Thanks for any help.