home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
dossleep.zip
/
DOSSLEEP.C
next >
Wrap
Text File
|
1994-05-31
|
784b
|
28 lines
/******************************************/
/*** Program: DOSSLEEP ***/
/*** Date: 05/26/94 ***/
/*** ***/
/*** This program sleeps for the amount ***/
/*** of time received from parameter 1. ***/
/******************************************/
#define INCL_BASE
#include <stdlib.h>
#include <os2.h>
unsigned long wait_time;
/*****************************************/
/*** Main Function of program ***/
/*****************************************/
int main(argc,argv)
int argc;
char *argv[];
{
if (argc < 2)
wait_time = 2000;
else
wait_time = atol(argv[1]);
DosSleep(wait_time);
exit(0); /* Exits program with good return code */
}