Thanks guys the cproto program did exactly what I needed it converted them all and save the file!
Now to get rid of all these error: deprecated conversion from string constant to ‘char*’ lol
In my searched I found zlib uses this method I wonder how they get it to compile. Thanks again!
I'd suggest ignoring it, unless you're determined to modernize the code. The conversion is legal, just deprecated.
To fix it properly would require to go through every location that error pops up, and change char * to const char *, then to go through again for every new error that creates, changing variables and functions that use string literals, repeating until there are no more new errors.