C implementation on CodeBlocks