]>
git.proxmox.com Git - mirror_edk2.git/blob - AppPkg/Applications/Main/Main.c
2 A simple, basic, application showing how the Hello application could be
3 built using the "Standard C Libraries" from StdLib.
5 Copyright (c) 2010 - 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.
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.
15 //#include <Library/UefiLib.h>
16 //#include <Library/ShellCEntryLib.h>
21 Demonstrates basic workings of the main() function by displaying a
24 Note that the UEFI command line is composed of 16-bit UCS2 wide characters.
25 The easiest way to access the command line parameters is to cast Argv as:
26 wchar_t **wArgv = (wchar_t **)Argv;
28 @param[in] Argc Number of argument tokens pointed to by Argv.
29 @param[in] Argv Array of Argc pointers to command line tokens.
31 @retval 0 The application exited normally.
32 @retval Other An error occurred.
41 puts("Hello there fellow Programmer.");
42 puts("Welcome to the world of EDK II.");