Code examples for APUE 3 edition