06-02-2023, 05:29 AM
Checking _EXIT status every second like that is overkill. Just check the function result at the end of the main loop of the main program. Check _EXIT function result as one of the executable statements.
Also please provide a way for the user to exit the program! Usually I program [ESC] to leave the application at any time as soon as possible.
Because you're not showing the whole code example, it's not certain to others including me, why you're getting a "Duplicate definition" error.
Also please provide a way for the user to exit the program! Usually I program [ESC] to leave the application at any time as soon as possible.
Because you're not showing the whole code example, it's not certain to others including me, why you're getting a "Duplicate definition" error.