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 <exports.h>
8
9int hello_world(int argc, char *const argv[])
10{
11	int i;
12
13	/* Print the ABI version */
14	app_startup(argv);
15	printf ("Example expects ABI version %d\n", XF_VERSION);
16	printf ("Actual U-Boot ABI version %d\n", (int)get_version());
17
18	printf ("Hello World\n");
19
20	printf ("argc = %d\n", argc);
21
22	for (i=0; i<=argc; ++i) {
23		printf ("argv[%d] = \"%s\"\n",
24			i,
25			argv[i] ? argv[i] : "<NULL>");
26	}
27
28	printf ("Hit any key to exit ... ");
29	while (!tstc())
30		;
31	/* consume input */
32	(void) getc();
33
34	printf ("\n\n");
35	return (0);
36}
37