Some exercises from Kernighan and Ritchie's book on C programming.