Particle System

Hi,
I include in my project rendering terrain the particle system but the code I found is in C++ and my project is c.
Can someone help me translate it into C so that I can put it in my project?

Thank you

P.S. Contact me by e-mail because I can provide sample code that I include in my project.