]>
git.ipfire.org Git - thirdparty/u-boot.git/blob - examples/standalone/hello_world.c
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 * SPDX-License-Identifier: GPL-2.0+
11 int hello_world (int argc
, char * const argv
[])
15 /* Print the ABI version */
17 printf ("Example expects ABI version %d\n", XF_VERSION
);
18 printf ("Actual U-Boot ABI version %d\n", (int)get_version());
20 printf ("Hello World\n");
22 printf ("argc = %d\n", argc
);
24 for (i
=0; i
<=argc
; ++i
) {
25 printf ("argv[%d] = \"%s\"\n",
27 argv
[i
] ? argv
[i
] : "<NULL>");
30 printf ("Hit any key to exit ... ");