fixed definition of C function