Files
ipxe/src/commandline/commands/test2.c
T
Michael Brown 7de5d32ff5 cmdlinelib.c now calls system() rather than doing its own tokenisation
(which was extremely heavy on calls to malloc()).

Moved include/command.h to include/gpxe/command.h, since it's
gPXE-specific.
2006-12-08 01:26:11 +00:00

21 lines
379 B
C

#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,
};