jaime
Joined: 25 Nov 2005 Posts: 56 Location: Porto - Portugal
|
Passing variable to functions |
Posted: Thu Dec 28, 2006 9:20 am |
|
|
Hello
I have a table like this
f1, 1, 1
f2, 3, 2
f3, 5, 3
f4, 7 ,4
where in each line the first data will be a pin and the others will be int8.
I have to pass every line each time to a function like this:
Code: |
void read(char c, int x, int nr)
{
if(input('c'))
{
lcd_gotoxy(x,2);
lcd_putc("nr");
}
}
|
the calling for this function maybe...
Code: |
void findit(char c, int8 x, int8 nr);
|
but i cannot write the code to each time a send a line like this f1,1,1 and then next time f2,3,2 etc
any help?
Thanks a lot
Jaime |
|