passing structure as a function argument in c