access function of c without creating object