Almost done with C functions