Skip to content

Commit

Permalink
Update test.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
guotong1988 authored Nov 12, 2019
1 parent 1f2ce7e commit f7c614c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ using namespace std;
string inPath = "./wiki50k/";

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 relationTotal;
Expand Down

0 comments on commit f7c614c

Please sign in to comment.