changes to make cmd compile (not link)
[reactos.git] / reactos / apps / utils / cmd / verify.c
1 /*
2 * VERIFY.C - verify internal command.
3 *
4 *
5 * History:
6 *
7 * 31 Jul 1998 (John P Price)
8 * started.
9 *
10 * 18-Jan-1999 (Eric Kohl <ekohl@abo.rhein-zeitung.de>)
11 * VERIFY is just a dummy under Win32; it only exists
12 * for compatibility!!!
13 *
14 * 20-Jan-1999 (Eric Kohl <ekohl@abo.rhein-zeitung.de>)
15 * Unicode and redirection ready!
16 */
17
18 #include "config.h"
19
20 #ifdef INCLUDE_CMD_VERIFY
21
22 #include <windows.h>
23 #include <tchar.h>
24 #include <string.h>
25
26 #include "cmd.h"
27
28
29 /* global verify flag */
30 static BOOL bVerify = FALSE;
31
32
33 INT cmd_verify (LPTSTR cmd, LPTSTR param)
34 {
35 if (!_tcsncmp (param, _T("/?"), 2))
36 {
37 ConOutPuts (_T("This command is just a dummy!!\n"
38 "Sets whether to verify that your files are written correctly to a\n"
39 "disk.\n\n"
40 "VERIFY [ON | OFF]\n\n"
41 "Type VERIFY without a parameter to display the current VERIFY setting."));
42 return 0;
43 }
44
45 if (!*param)
46 ConOutPrintf (_T("VERIFY is %s.\n"), bVerify ? D_ON : D_OFF);
47 else if (_tcsicmp (param, D_OFF) == 0)
48 bVerify = FALSE;
49 else if (_tcsicmp (param, D_ON) == 0)
50 bVerify = TRUE;
51 else
52 ConOutPuts (_T("Must specify ON or OFF."));
53
54 return 0;
55 }
56
57 #endif