Whats the smartest way to run an application continuously so that it doesn’t exit after it hits the bottom? Instead it starts again from the top of main and only exits when commanded. (This is in C)
Whats the smartest way to run an application continuously so that it doesn’t exit
Share
You should always have some way of exiting cleanly. I’d suggest moving the code off to another function that returns a flag to say whether to exit or not.