home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / D / CLISP / CLISPSRC.TAR / clisp-1995-01-01 / dos / delay.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-31  |  347 b   |  17 lines

  1. /* Tiny DELAY utility. */
  2. /* "DELAY.EXE n" delays for n seconds, n a small positive decimal integer. */
  3. /* Can be compiled with Turbo C 2.0. */
  4. /* Copyright (C) Bruno Haible 31.7.1993 */
  5.  
  6. #include <dos.h>
  7.  
  8. main (int argc, char** argv)
  9. { if (argc > 1)
  10.     { int amount = atoi(argv[1]);
  11.       if (amount > 0)
  12.     { sleep(amount); }
  13.     }
  14.   exit(0);
  15. }
  16.  
  17.