ReactOS 0.4.15-dev-7934-g1dc8d80
delay.c
Go to the documentation of this file.
1/*
2 * DELAY.C - internal command.
3 *
4 * clone from 4nt delay command
5 *
6 * 30 Aug 1999
7 * started - Paolo Pantaleo <paolopan@freemail.it>
8 *
9 *
10 */
11
12#include "precomp.h"
13
14#ifdef INCLUDE_CMD_DELAY
15
16
18{
19 DWORD val;
20 DWORD mul=1000;
21
22 if (_tcsncmp (param, _T("/?"), 2) == 0)
23 {
25 return 0;
26 }
27
28 nErrorLevel = 0;
29
30 if (*param==0)
31 {
33 return 1;
34 }
35
36 if (_tcsnicmp(param,_T("/m"),2) == 0)
37 {
38 mul = 1;
39 param += 2;
40 }
41
42 val = _ttoi(param);
43 Sleep(val * mul);
44
45 return 0;
46}
47
48#endif /* INCLUDE_CMD_DELAY */
INT nErrorLevel
Definition: cmd.c:158
VOID error_req_param_missing(VOID)
Definition: error.c:110
VOID ConOutResPaging(BOOL StartPaging, UINT resID)
Definition: console.c:182
INT CommandDelay(LPTSTR param)
Definition: delay.c:17
#define STRING_DELAY_HELP
Definition: resource.h:104
#define TRUE
Definition: types.h:120
unsigned long DWORD
Definition: ntddk_ex.h:95
GLuint GLfloat * val
Definition: glext.h:7180
GLfloat param
Definition: glext.h:5796
#define _tcsncmp
Definition: tchar.h:1428
#define mul(aa, bb)
Definition: mvAesAlg.c:25
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
Definition: synch.c:790
int32_t INT
Definition: typedefs.h:58
#define _T(x)
Definition: vfdio.h:22
#define _ttoi
Definition: xmlstorage.h:195
#define _tcsnicmp
Definition: xmlstorage.h:207
CHAR * LPTSTR
Definition: xmlstorage.h:192