Made C version of cpp files