blob: 6cb2ee70b1ac6f1ce2ac3d63db6f234b77e9758b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include <vsprintf.h>
#include <gpxe/command.h>
void test2_req(){}
static int cmd_test2_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 test2_command __command = {
.name = "test2",
.exec = cmd_test2_exec,
};
|