aboutsummaryrefslogtreecommitdiffstats
path: root/com32/samples/localboot.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-09-21 16:54:57 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-09-21 16:54:57 -0700
commit3ac4d898c0dee05c6e2d00e4ecbf208dbd4915e8 (patch)
tree0c3353c8c2b93096038bae304b694f4a356b4809 /com32/samples/localboot.c
parent5a16eeb519c87fa4c437e838af81731b8d355052 (diff)
downloadsyslinux-3ac4d898c0dee05c6e2d00e4ecbf208dbd4915e8.tar.gz
syslinux-3ac4d898c0dee05c6e2d00e4ecbf208dbd4915e8.tar.xz
syslinux-3ac4d898c0dee05c6e2d00e4ecbf208dbd4915e8.zip
localboot.c32: sample/test program for invoking syslinux_local_boot()
Simple test program which simply invokes syslinux_local_boot().
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;
+}