home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d3xx / d327 / msh.lha / Msh / src / die.c < prev    next >
C/C++ Source or Header  |  1990-03-05  |  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.