Code samples for the book Patterns in C