posix-uefi/examples/02_args/args.c

16 lines
266 B
C
Raw Normal View History

2021-02-01 01:09:23 +01:00
#include <uefi.h>
2021-02-02 01:26:30 +01:00
/**
* Print out arguments
*/
2021-02-01 01:09:23 +01:00
int main(int argc, wchar_t **argv)
{
int i;
2021-02-02 01:26:30 +01:00
printf(L"I got %d argument%s:\n", argc, argc > 1 ? L"s" : L"");
for(i = 0; i < argc; i++)
printf(L" argv[%d] = '%s'\n", i, argv[i]);
2021-02-01 01:09:23 +01:00
return 0;
}