This is a test application that demonstrates how to use the C-style entry point\r
for a shell application.\r
\r
- Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
)\r
{\r
UINTN Index;\r
-\r
- Print(L"ShellCTestApp.c:ShellAppMain called with %d parameters\n", Argc);\r
- for (Index = 0; Index < Argc; Index++) {\r
- Print(L"Argv[%d]: %s\n", Index, Argv[Index]);\r
+ if (Argc == 1) {\r
+ Print (L"Argv[1] = NULL\n");\r
+ }\r
+ for (Index = 1; Index < Argc; Index++) {\r
+ Print(L"Argv[%d]: \"%s\"\n", Index, Argv[Index]);\r
}\r
\r
return 0;\r