NEURON
d2uenv.cpp
Go to the documentation of this file.
1 #include <stdio.h>
2 #include <stdlib.h>
3 int main(int argc, char** argv) {
4  char *cp1, *cp2;
5  char buf[256];
6  int i;
7  for (i=1; i < argc; ++i) {
8  if (i > 1) {
9  printf(" ");
10  }
11  for (cp1=argv[i], cp2=buf; *cp1; ++cp1, ++cp2) {
12  if (*cp1 == '\\') {
13  *cp2 = '/';
14  }else{
15  *cp2 = *cp1;
16  }
17  }
18  *cp2 = '\0';
19  printf("%s", buf);
20  }
21  printf("\n", buf);
22  return 0;
23 }
#define printf
Definition: mwprefix.h:26
int main(int argc, char **argv)
Definition: d2uenv.cpp:3
#define i
Definition: md1redef.h:12
char buf[512]
Definition: init.cpp:13
static int argc
Definition: inithoc.cpp:53
static char ** argv
Definition: inithoc.cpp:54