]> git.proxmox.com Git - mirror_edk2.git/blame - AppPkg/Applications/Main/Main.c
AppPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / AppPkg / Applications / Main / Main.c
CommitLineData
2aa62f2b 1/** @file\r
2 A simple, basic, application showing how the Hello application could be\r
3 built using the "Standard C Libraries" from StdLib.\r
4\r
5 Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
bcb96695 6 SPDX-License-Identifier: BSD-2-Clause-Patent\r
2aa62f2b 7**/\r
8//#include <Uefi.h>\r
9//#include <Library/UefiLib.h>\r
10//#include <Library/ShellCEntryLib.h>\r
11\r
12#include <stdio.h>\r
13\r
14/***\r
15 Demonstrates basic workings of the main() function by displaying a\r
16 welcoming message.\r
17\r
18 Note that the UEFI command line is composed of 16-bit UCS2 wide characters.\r
19 The easiest way to access the command line parameters is to cast Argv as:\r
20 wchar_t **wArgv = (wchar_t **)Argv;\r
21\r
22 @param[in] Argc Number of argument tokens pointed to by Argv.\r
23 @param[in] Argv Array of Argc pointers to command line tokens.\r
24\r
25 @retval 0 The application exited normally.\r
26 @retval Other An error occurred.\r
27***/\r
28int\r
2aa62f2b 29main (\r
30 IN int Argc,\r
31 IN char **Argv\r
32 )\r
33{\r
34\r
35 puts("Hello there fellow Programmer.");\r
36 puts("Welcome to the world of EDK II.");\r
37\r
38 return 0;\r
39}\r