Is it possible to end a program forcefully?

retrolefty:

LockDots:
How would starting that function starting with:

void stopSketch(void)

Differ from starting it with:
void stopSketch()

The void stopSketch(void) is telling the compiler when it first compiles this function that it returns no value back to the calling program and requires no argument to be passed to it when it is called by the program.

During use in your sketch you just write stopSketch() and be done with it.

Lefty

When I give my function declaration or definition is there any difference whether or not I put void in the parameter list or if I just use empty parenthesis? I know both will compile. But is there any larger reason to put the second void in there in the definition or declaration?