FACT++  1.0
webServer.c
Go to the documentation of this file.
1 #include <string.h>
2 #include <unistd.h>
3 
4 int local_main(int argc, char **argv);
5 
6 int main(int argc, char **argv)
7 {
8  if (argc) {}
9 
10  char currwd[1024];
11  strcpy(currwd, argv[0]);
12 
13  char *ptr = strrchr(currwd,'/');
14  if (ptr)
15  *ptr = '\0';
16 
17  strcpy(ptr, "/../dim/WebDID/");
18 
19  char *arg[2] = { currwd, argv[1] };
20  return local_main(2, arg);
21 }
22 
23 #define main local_main
int local_main(int argc, char **argv)
#define main
Definition: webServer.c:23