refraction part 1
[mancala] / src / launcher / mancala-launcher.c
1 /**
2    @file crazyparking.c
3
4    Wrapper crazyparking launcher
5    <p>
6    Copyright (c) 2005 INdT. All eigths reserved.
7
8    @author Andre Moreira Magalhaes <andre.magalhaes@indt.org.br>
9 */
10
11 #include <stdio.h>
12 #include <unistd.h>
13
14 char *argh[] = { "/usr/games/wrapper/wrapper",
15                  "/home/opt/mancala/data/mancala.game",
16                  NULL };
17
18 int main(int argc, char *argv[])
19 {
20     fprintf(stderr, "exec laucher...\n");
21
22     if (execv ("/usr/games/wrapper/wrapper", argh) == -1) {
23         fprintf(stderr, "can not execute wrapper\n");
24     }
25
26     return 0;
27 }