passing parameters to a function in c