1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * (C) Copyright 2000
4  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5  */
6 
7 #include <common.h>
8 #include <exports.h>
9 
10 int hello_world (int argc, char * const argv[])
11 {
12 	int i;
13 
14 	/* Print the ABI version */
15 	app_startup(argv);
16 	printf ("Example expects ABI version %d\n", XF_VERSION);
17 	printf ("Actual U-Boot ABI version %d\n", (int)get_version());
18 
19 	printf ("Hello World\n");
20 
21 	printf ("argc = %d\n", argc);
22 
23 	for (i=0; i<=argc; ++i) {
24 		printf ("argv[%d] = \"%s\"\n",
25 			i,
26 			argv[i] ? argv[i] : "<NULL>");
27 	}
28 
29 	printf ("Hit any key to exit ... ");
30 	while (!tstc())
31 		;
32 	/* consume input */
33 	(void) getc();
34 
35 	printf ("\n\n");
36 	return (0);
37 }
38