codes for book "C Interfaces and Implementation Techniques".