mirror of https://github.com/ipxe/ipxe.git
21 lines
374 B
C
21 lines
374 B
C
#include <vsprintf.h>
|
|
#include <gpxe/command.h>
|
|
|
|
void test_req(){}
|
|
|
|
static int cmd_test_exec ( int argc, char **argv ) {
|
|
int i;
|
|
|
|
printf("Hello, world!\nI got the following arguments passed to me: \n");
|
|
for(i = 0; i < argc; i++){
|
|
printf("%d: \"%s\"\n", i, argv[i]);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
struct command test_command __command = {
|
|
.name = "test",
|
|
.exec = cmd_test_exec,
|
|
};
|
|
|