hi guys. let's say i have inside a panel a button:

button (250, 134, "add1.pcx", "add2.pcx", "add3.pcx", add, NULL, NULL)

and i want my add function to look like this:

add(int x, int y){
return x + y;
}

how do i do something like this? the reason for me asking is because I don't like using global variables and that's how I used to do it. thanks for your replies