Simple C convenient routines, mostly memory allocation.