How to pass a variable to a function?

dealing with pointers is why I`ve avoided "C" type programming until now, gives me a headache

But, once you understand them, they are so useful and easy that you'll wonder why you ever had trouble.