Useful routines for 'C' programming