#include "GObjects.h"
#include "GExceptn.h"
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>

/**
  Main file for C utilities.
  project started 8/8/93
**/

void cdecl ZAP (int m,char * s)
{
/*  printf ("\nZap !\n") ; */
  printf (s) ;
  printf ("%X %X %X %X %X %X %X %X %X %X %X %X %X %X\n",m);
}

Clad ZZAP = { NULL , (void*) ZAP } ;
Clad ZZAAP = { &ZZAP, "Help !\n" } ;
Clad ZZAAPP = { &ZZAAP, 1 } ;
Clad ZZZAAPP = { &ZZAAPP, 2 } ;
Clad ZZZAAAPP = { &ZZZAAPP, 3 } ;
Clad ZZZAAAPPP = { &ZZZAAAPP, 4 } ;

int cdecl main (int argc, char** argv)
{
  if ( argc != 0x55AA ) {
    main ( 0x55AA,NULL ) ;
    ZAP (0,"Ok !");
  }
  else {
    clrscr () ;
    ZAP (0x55AA,"Hello !\n") ;
    Apply (NULL,&ZZZAAAPPP,5,6,7,8) ;
    ZAP (0x55AA,"Goodbye !\n") ;
  }
  return *argv[argc] ;
}
