阅读背景:

在C程序中,是否可以将所有全局变量重置为默认vaues?

来源:互联网 

I have a legacy C Linux application that I need to reuse . This application uses a lot of global variables. I want to reuse this application's main method and invoke that in a loop. I have found that when I call the main method( renamed to callableMain) in a loop , the application behavior is not consistent as the values of global variables set in previous iteration impact the program flow in the new iteration.I have a legacy C Linux application that I need




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: