Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
48e61a13c8dac529f7fa7714054f68fd554c198a
[simgrid.git] / src / mc / simgrid_mc.c
1 /* Copyright (c) 2015. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #include <stdio.h>
8 #include <errno.h>
9
10 #include <unistd.h>
11
12 #include "mc_base.h"
13
14 int main(int argc, char** argv)
15 {
16   if (argc < 2)
17     xbt_die("Missing arguments.\n");
18
19   setenv(MC_ENV_VARIABLE, "1", 1);
20   execvp(argv[1], argv+1);
21
22   perror("simgrid-mc");
23   return 127;
24 }