I'm slightly foxed. I'm used to writing some pretty basic C, and want to write some functions that do some stuff with some variables, so it helps tidy up my program a lot and I can call the same functions from anywhere. It doesn't seem quite what I'm used to though.
I've worked out I can send stuff to a function by using:
void functionname(variable1, variable2){
// Funky Code here
}
If I want to get data back, e.g. an integer, I can define it as:
int functionname(variable1, variable2){
// Funky Code here
}
But what if I want to get a few values back from it? Or get a string (or char array), AND an int or float back?
I also gather that I don't need to send memory pointers like I'm used to (&variable1, or use *variable1)?