Solutions to problems in "The C programming language" by KnR