Procedural programming paradigm using C