tiny set of C functions