Just some C programming of various kinds