How does one use
exit(EXIT_FAILURE) in microcontroller C programming. I know it works on application level C programs when you include
The idea is to exit the main loop altogether when some unexpected value is returned, for example.
What exactly would be the common approach in such a case? I could do a Reset but i want to see if somethings gone wrong in main. Is it a good practice to use
goto: exit_main or something similar?