How to create a subroutine in C?