The source code is available from 
http://peterhi.dyndns.org/write_it_in_c/index.html