home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 354.lha / MSH_v1.5 / src / die.c < prev    next >
C/C++ Source or Header  |  1990-03-12  |  397b  |  22 lines

  1. /*-
  2.  *  DIE.C
  3.  *
  4.  *  This code is (C) Copyright 1989 by Olaf Seibert. All rights reserved. May
  5.  *  not be used or copied without a licence.
  6. -*/
  7.  
  8. main(argc, argv)
  9. int argc;
  10. char **argv;
  11. {
  12.     struct MsgPort *filehandler, *DeviceProc();
  13.  
  14.     if (argc == 2) {
  15.     if (filehandler = DeviceProc(argv[1])) {
  16.         dos_packet(filehandler, ACTION_DIE, DOSTRUE);
  17.     }
  18.     } else
  19.     printf("Usage: die DEV:\n");
  20. }
  21.  
  22.