Stop using C
So what do you suggest instead?
Python? Written in C
PHP? Written in C
Go? ....you get the idea?
Whenever anyone tries to claim that "C is dead. Nobody uses C anymore" they should remember that virtually all the other languages are written in it (or some derivirive of it such as C++)
Besides, an ENOURMOUS amount of code is written every day in C/C++. And that's not changing any time soon.
And ALL the useful stuff (stuff that makes the phone network work, or runs your TV, or makes the Internet work, or heart monitors, or....) is (guess what?) written in C