K
kevin donne
Whatup,
I have a program that sometimes I need to restart from within the program
itself.
Obviously I can store away argc and argv and just call main() again,
however this does not reinitialize any static variables in my code and
any libraries.
How can I achieve this please? Is there some way with setjump()?
TIA
I have a program that sometimes I need to restart from within the program
itself.
Obviously I can store away argc and argv and just call main() again,
however this does not reinitialize any static variables in my code and
any libraries.
How can I achieve this please? Is there some way with setjump()?
TIA