]>
git.proxmox.com Git - mirror_edk2.git/blob - ShellPkg/Application/ShellCTestApp/ShellCTestApp.c
2 This is a test application that demonstrates how to use the C-style entry point
3 for a shell application.
5 Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17 #include <Library/UefiLib.h>
18 #include <Library/DebugLib.h>
19 #include <Library/ShellCEntryLib.h>
22 UEFI application entry point which has an interface similar to a
23 standard C main function.
25 The ShellCEntryLib library instance wrappers the actual UEFI application
26 entry point and calls this ShellAppMain function.
28 @param[in] Argc The number of items in Argv.
29 @param[in] Argv Array of pointers to strings.
31 @retval 0 The application exited normally.
32 @retval Other An error occurred.
44 Print(L
"ShellCTestApp.c:ShellAppMain called with %d parameters\n", Argc
);
45 for (Index
= 0; Index
< Argc
; Index
++) {
46 Print(L
"Argv[%d]: %s\n", Index
, Argv
[Index
]);