Following on from my last post relating to IO using the c API's I am now going to explain how it works.
The biggest difference in the build process was that instead of linking the Assembly library created by NASM I am compiling and linking with gcc.