remove whitespace from end of lines
[reactos.git] / reactos / subsys / system / cmd / pause.c
1 /*
2 * PAUSE.C - pause internal command.
3 *
4 *
5 * History:
6 *
7 * 16 Jul 1998 (Hans B Pufal)
8 * started.
9 *
10 * 16 Jul 1998 (John P Price)
11 * Seperated commands into individual files.
12 *
13 * 27-Jul-1998 (John P Price <linux-guru@gcfl.net>)
14 * added config.h include
15 *
16 * 18-Jan-1999 (Eric Kohl <ekohl@abo.rhein-zeitung.de>)
17 * Unicode ready!
18 */
19
20 #include "precomp.h"
21 #include "resource.h"
22
23 #ifdef INCLUDE_CMD_PAUSE
24
25 /*
26 * Perform PAUSE command.
27 *
28 * FREEDOS extension : If parameter is specified use that as the pause
29 * message.
30 *
31 * ?? Extend to include functionality of CHOICE if switch chars
32 * specified.
33 *
34 * 30-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>)
35 * Remove all hardcode string to En.rc
36 */
37
38 INT cmd_pause (LPTSTR cmd, LPTSTR param)
39 {
40
41 #ifdef _DEBUG
42 DebugPrintf (_T("cmd_pause: \'%s\' : \'%s\')\n"), cmd, param);
43 #endif
44
45 if (!_tcsncmp (param, _T("/?"), 2))
46 {
47 ConOutResPuts(STRING_PAUSE_HELP1);
48 return 0;
49 }
50
51 if (*param)
52 ConOutPrintf (param);
53 else
54 msg_pause ();
55
56 cgetchar ();
57
58 return 0;
59 }
60
61 #endif
62
63 /* EOF */