adding a function in C