how to define a function in c