a library of misc C utility code