SMLabyrinth.c File Reference

File containing main() function. More...

#include "guihandler.h"

Go to the source code of this file.


bool showUsage_and_setTracingVerbosity (int argc, char **argv)
 Function that show the program usage, invoked by command line.
int main (int argc, char **argv)
 Main function of the program.


unsigned int MASK = 1
 Using a bit mask (MASK) to activate specified function(s) (Eg.

Detailed Description

File containing main() function.

Definition in file SMLabyrinth.c.

Function Documentation

int main ( int  argc,
char **  argv 

Main function of the program.

Check if the user has invoked the program passing some kind of arguments using the function showUsage_and_setTracingVerbosity, then exit. Otherwise, if the user has called the program without arguments start the gui function to generate the Graphic User Interface; user will decide later when exit.

Definition at line 143 of file SMLabyrinth.c.

References D1, D2, D3, D4, D5, D6, D7, D8, gui(), ID1, ID2, ID3, ID4, ID5, ID6, ID7, ID8, MASK, and showUsage_and_setTracingVerbosity().

Here is the call graph for this function:

bool showUsage_and_setTracingVerbosity ( int  argc,
char **  argv 

Function that show the program usage, invoked by command line.

If no arguments, starts the graphic user interface.

Positive value (true) if the user invokes the function with arguments. Negative value (false) otherwise.
argc The same of main function (int)
argv The same of main function (char **)

Definition at line 185 of file SMLabyrinth.c.


Referenced by main().

Here is the caller graph for this function:

Variable Documentation

unsigned int MASK = 1

Using a bit mask (MASK) to activate specified function(s) (Eg.

255 = all, ... ,3=D1 & D2, 2 = D2, 1 = D1 , 0 = none) The value of MASK is set in main function and can be changed by user using appropriate command.

Definition at line 121 of file SMLabyrinth.c.

Referenced by main(), and showUsage_and_setTracingVerbosity().

Generated on Fri Apr 2 18:28:10 2010 for SMLabyrinth by  doxygen 1.5.8