/*
 *========================================================================
 * $Id: wulfstat.c 208 2004-02-20 14:55:00Z rgb $
 *
 * See copyright in copyright.h and the accompanying file COPYING
 *========================================================================
 */

/*
 *========================================================================
 *  Project template.
 *========================================================================
 */

#include "wulfstat.h"


/*
 * main() is just a shell for routines that parse the command line,
 * do all the requested work, and then exit cleanly.  main() is pretty
 * much all there is in wulfstat.c
 */
int main(int argc, char *argv[]) 
{

 /*
  * Parse command line and set global variables
  */
 parsecl(argc,argv);

 /*
  * Startup: Allocate memory, initialize all derivative variables from
  * command line values.  Connect to xmlsysd's and init.
  */
 startup();

 /*
  * Work: Do all the work. Typically loop on a delay, poll xmlsysd sockets, parse
  * results, display.
  */

 work();

 /* 
  * Quit:  Done. Clean up (if necessary) and exit.
  */
 quit();

}
