Calling main function from another function in C
问题 I have a main function that runs a few functions during initialization and then runs a while loop that waits for commands from the UART. When I see a specific command (let's say reset), I call a function that returns a value. I want to do the following things: Save the returned value Start the main function again with the returned value. The returned value is required during initialization of the functions in main. I am newbie in C and I am not able to figure out a way save variable value in