changes to make cmd compile (not link)
[reactos.git] / rosapps / cmd / title.c
1 /*
2 * title.c - title internal command.
3 *
4 *
5 * History:
6 * 1999-02-11 Emanuele Aliberti
7 */
8
9 #include "config.h"
10
11 #ifdef INCLUDE_CMD_TITLE
12
13 #include <windows.h>
14 #include <tchar.h>
15 #include <string.h>
16
17 #include "cmd.h"
18
19
20 INT cmd_title (LPTSTR cmd, LPTSTR param)
21 {
22 /* Do nothing if no args */
23 if (*param == _T('\0'))
24 return 0;
25
26 /* Asking help? */
27 if (!_tcsncmp(param, _T("/?"), 2))
28 {
29 ConOutPuts (_T("Sets the window title for the command prompt window.\n"
30 "\n"
31 "TITLE [string]\n"
32 "\n"
33 " string Specifies the title for the command prompt window."));
34 return 0;
35 }
36
37 return SetConsoleTitle (param);
38 }
39
40 #endif /* def INCLUDE_CMD_TITLE */
41
42 /* EOF */