]> git.proxmox.com Git - mirror_edk2.git/blame - EmbeddedPkg/EblExternCmd/Main.c
EmbeddedPkg: Fix mispellings
[mirror_edk2.git] / EmbeddedPkg / EblExternCmd / Main.c
CommitLineData
2ef2b01e
A
1/** @file\r
2 Example of an external EBL command. It's loaded via EBL start command. \r
3 Argc and Argv are passed in via "" of the EBL command line.\r
4\r
5 Start fs0:\EdkExternCmd.efi "Argv[0] Argv[1] 2"\r
6\r
7 will launch this command with \r
8 Argv[0] = "Argv[0]"\r
9 Argv[1] = "Argv[2]"\r
10 Argv[2] = "3"\r
11\r
60274cca
HT
12 Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r
13 Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
2ef2b01e 14\r
60274cca 15 This program and the accompanying materials\r
2ef2b01e
A
16 are licensed and made available under the terms and conditions of the BSD License\r
17 which accompanies this distribution. The full text of the license may be found at\r
18 http://opensource.org/licenses/bsd-license.php\r
19\r
20 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
21 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
22\r
23\r
24**/\r
25\r
26\r
27/**\r
28 Entry point with Argc, Argv. Put your code here.\r
29\r
30 @param Argc Number of command arguments in Argv\r
31 @param Argv Array of strings that represent the parsed command line. \r
7ca9e5a4 32 Argv[0] is the command name\r
2ef2b01e
A
33\r
34 @return EFI_SUCCESS\r
35\r
36**/\r
37EFI_STATUS\r
38EblMain (\r
39 IN UINTN Argc,\r
40 IN CHAR8 **Argv\r
41 )\r
42{\r
43 UINTN Index;\r
44\r
45 AsciiPrint ("Hello World\n");\r
46 for (Index = 0; Index < Argc; Index++) {\r
47 AsciiPrint ("Argv[%d] = %a\n", Index, Argv[Index]);\r
48 }\r
49 \r
50 return EFI_SUCCESS;\r
51}\r
52\r