]>
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 - 2015, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
11 #include <Library/UefiLib.h>
12 #include <Library/DebugLib.h>
13 #include <Library/ShellCEntryLib.h>
16 UEFI application entry point which has an interface similar to a
17 standard C main function.
19 The ShellCEntryLib library instance wrappers the actual UEFI application
20 entry point and calls this ShellAppMain function.
22 @param[in] Argc The number of items in Argv.
23 @param[in] Argv Array of pointers to strings.
25 @retval 0 The application exited normally.
26 @retval Other An error occurred.
39 Print (L
"Argv[1] = NULL\n");
42 for (Index
= 1; Index
< Argc
; Index
++) {
43 Print (L
"Argv[%d]: \"%s\"\n", Index
, Argv
[Index
]);