Examples from the book Learn C the Hard Way.