My first attempt at writing an efficient C program while reading The C Programming Language.