Remvoed cpp
Modified to use C instead of C++