home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / dossleep.zip / DOSSLEEP.C next >
Text File  |  1994-05-31  |  784b  |  28 lines

  1. /******************************************/
  2. /*** Program: DOSSLEEP                  ***/ 
  3. /*** Date:    05/26/94                  ***/ 
  4. /***                                    ***/
  5. /*** This program sleeps for the amount ***/
  6. /*** of time received from parameter 1. ***/
  7. /******************************************/
  8. #define INCL_BASE
  9. #include <stdlib.h>
  10. #include <os2.h>
  11.  
  12. unsigned long wait_time;
  13.  
  14. /*****************************************/
  15. /*** Main Function of program          ***/
  16. /*****************************************/
  17. int main(argc,argv)
  18. int  argc;
  19. char *argv[];
  20. {
  21.    if (argc < 2)
  22.       wait_time = 2000;
  23.    else
  24.       wait_time = atol(argv[1]);
  25.    DosSleep(wait_time);
  26.    exit(0);                 /* Exits program with good return code */
  27. }
  28.