a few small utils of c