servo moving question

Hi…new here and to this C stuff…been using basic stamps since they came out…how do you code a continuous moving sevo to keep rotating???..in C , since there are no gosubs, how do you call a function, outside a main loop?

thanks for the help