Given:
have an old program written in C since the 1990s.
You have two questions:
Should I focus on rewriting this in modern C? Maybe, maybe not. I would try to stick with the standard C89, C99 or C11. It mainly depends on your tools and how the new development will develop.
Do you like to declare variables except at the beginning of the scope? If so, then maybe upgrading to C99. Do you use any tools that really look like C89 and show errors or warnings with C99 conventions? If so, stick with C89.
If the program is constantly updated, and you hire young people, then newer agreements may be useful.
Should I focus on rewriting this in C ++? Not.
source share