aboutsummaryrefslogtreecommitdiffstats
path: root/com32/samples/localboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/samples/localboot.c')
-rw-r--r--com32/samples/localboot.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/com32/samples/localboot.c b/com32/samples/localboot.c
new file mode 100644
index 00000000..579c7b03
--- /dev/null
+++ b/com32/samples/localboot.c
@@ -0,0 +1,9 @@
+#include <syslinux/boot.h>
+#include <stdlib.h>
+
+int main(int argc, char *argv[])
+{
+ syslinux_local_boot(argc > 1 ? atoi(argv[1]) : 0);
+
+ return 0;
+}