The example_go() routine is the one which should do the computational analysis. It is called without any arguments and may return an integer. Any value returned by the routine example_go() will be ignored by dstool. This routine will be called by the handler routine when the appropriate menu item has been selected by the user. The sample code below simply prints a message that it has been called.
#include <stdio.h> /* include stdio.h declarations for stdout */ /* * example_go() * * example analysis begin * called when the "Example" menu item is selected */ int example_go() { fprintf(stdout, "Beginning EXAMPLE analysis...\n"); /* this is where you must put your own code */ fprintf(stdout, "EXAMPLE analysis complete.\n"); }