You should declare the function before you use itmain() is an exception. All the other functions need to be declared before use. Just put your function prototype at the beginning of the program.
BTW: It's better to use than (more...)
is it not backward compatible de mah?
not very sure, please teach me more :)