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