basic funcs in C