also, if you
are required to pass a value, but you have a pointer-based variable, the asterisk (*) will get you what you need.
quick pointers tutorial:
Code:
char *ptr; //declares pointer to a char
ptr = whatever; //assigns "whatever" as the *address* where ptr is pointing (usually for assigning the address of one pointer to another)
*ptr = whatever; //assigns "whatever" as the value stored where ptr is pointing (the normal "i want to assign a value")
ptr = &whatever; //assigns the address of "whatever" to the ptr (essentially, makes ptr point at "whatever")