posix-uefi/examples/02_args/args.c
2021-02-02 01:26:30 +01:00

15 lines
266 B
C

#include <uefi.h>
/**
* Print out arguments
*/
int main(int argc, wchar_t **argv)
{
int i;
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]);
return 0;
}