Skip to content

Commit

Permalink
Merge pull request #36 from guotong1988/patch-1
Browse files Browse the repository at this point in the history
For Python3, Update init.cpp
  • Loading branch information
THUCSTHanxu13 committed Jul 30, 2020
2 parents 1f2ce7e + 70491d2 commit aee91df
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 aee91df

Please sign in to comment.