random C programs and stuff