Skip to content

Commit

Permalink
Update init.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
guotong1988 authored Nov 12, 2019
1 parent 1f2ce7e commit 70491d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ string inPath = "./data/";
int bernFlag = 0;

extern "C"
void setInPath(char *path) {
int len = strlen(path);
void setInPath(char *path, int len) {
inPath = "";
for (int i = 0; i < len; i++)
printf("init path...\n");
for (int i = 0; i < len; i++){
inPath = inPath + path[i];
printf("Input Files Path : %s\n", inPath.c_str());
}
}

int *lefHead, *rigHead;
Expand Down

0 comments on commit 70491d2

Please sign in to comment.