programming c procedure