home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / amiexpress / source / doors / cli / cli.c next >
Encoding:
C/C++ Source or Header  |  1992-12-26  |  525 b   |  30 lines

  1. #include <exec/exec.h>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <dos/dos.h>
  5. #include <dos/dosextens.h>
  6. void LastCommand(void);
  7. void end(void);
  8. struct CommandLineInterface *temp=NULL;
  9.  
  10. main(int argc,char *argv[])
  11. {
  12.    Register(argv[1][0]-'0');
  13.    temp=(struct CommandLineInterface *)Cli();
  14.    if(temp)
  15.    {
  16.       sm("Yes there is a commandline interface for this door.",1);
  17.    }
  18.    else sm("Can't locate a commandline interface.",1);
  19.  
  20.    ShutDown();
  21.    end();
  22. }
  23.  
  24. void LastCommand(void)
  25. {
  26. }
  27. void end(void)
  28. {
  29.   exit(0);
  30. }