aboutsummaryrefslogtreecommitdiffstats
path: root/com32/elflink/modules/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/elflink/modules/menu.c')
-rw-r--r--com32/elflink/modules/menu.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/com32/elflink/modules/menu.c b/com32/elflink/modules/menu.c
new file mode 100644
index 00000000..a4faf898
--- /dev/null
+++ b/com32/elflink/modules/menu.c
@@ -0,0 +1,19 @@
+/*
+ * menu.c -- simple program to test menu_main()
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/module.h>
+
+#include "menu.h"
+
+/*
+ * useage: menu.c32 [config file]
+ */
+static int menu(int argc, char **argv)
+{
+ menu_main(argc, argv);
+ return 0;
+}
+MODULE_MAIN(menu);