refraction part 1
[mancala] / src / launcher / mancala-launcher.c
diff --git a/src/launcher/mancala-launcher.c b/src/launcher/mancala-launcher.c
new file mode 100644 (file)
index 0000000..136b9af
--- /dev/null
@@ -0,0 +1,27 @@
+/**
+   @file crazyparking.c
+
+   Wrapper crazyparking launcher
+   <p>
+   Copyright (c) 2005 INdT. All eigths reserved.
+
+   @author Andre Moreira Magalhaes <andre.magalhaes@indt.org.br>
+*/
+
+#include <stdio.h>
+#include <unistd.h>
+
+char *argh[] = { "/usr/games/wrapper/wrapper",
+                 "/home/opt/mancala/data/mancala.game",
+                NULL };
+
+int main(int argc, char *argv[])
+{
+    fprintf(stderr, "exec laucher...\n");
+
+    if (execv ("/usr/games/wrapper/wrapper", argh) == -1) {
+        fprintf(stderr, "can not execute wrapper\n");
+    }
+
+    return 0;
+}