1 /** @file
2 A simple, basic, application showing how the Hello application could be
3 built using the "Standard C Libraries" from StdLib.
4
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.
10
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.
13 **/
14 //#include <Uefi.h>
15 //#include <Library/UefiLib.h>
16 //#include <Library/ShellCEntryLib.h>
17
18 #include <stdio.h>
19
20 /***
21 Demonstrates basic workings of the main() function by displaying a
22 welcoming message.
23
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;
27
28 @param[in] Argc Number of argument tokens pointed to by Argv.
29 @param[in] Argv Array of Argc pointers to command line tokens.
30
31 @retval 0 The application exited normally.
32 @retval Other An error occurred.
33 ***/
34 int
main(IN int Argc,IN char ** Argv)35 main (
36 IN int Argc,
37 IN char **Argv
38 )
39 {
40
41 puts("Hello there fellow Programmer.");
42 puts("Welcome to the world of EDK II.");
43
44 return 0;
45 }
46