The code in the book is written in C. It is available in this code archive.
There is a little bit of bonus code in that archive too becauseā¦ why not? :)