diff options
author | Matt Strapp <strap012@umn.edu> | 2020-10-04 14:14:41 -0500 |
---|---|---|
committer | Matt Strapp <strap012@umn.edu> | 2020-10-04 14:14:41 -0500 |
commit | 8c05ff01ffcf045d2edace72c1f83486ba8e9af9 (patch) | |
tree | d9aa05bbea8cba7ddaafb2806afe3feaca02b39d | |
parent | Update mapper again this time pls work dear fucking god (diff) | |
download | csci4061-8c05ff01ffcf045d2edace72c1f83486ba8e9af9.tar csci4061-8c05ff01ffcf045d2edace72c1f83486ba8e9af9.tar.gz csci4061-8c05ff01ffcf045d2edace72c1f83486ba8e9af9.tar.bz2 csci4061-8c05ff01ffcf045d2edace72c1f83486ba8e9af9.tar.lz csci4061-8c05ff01ffcf045d2edace72c1f83486ba8e9af9.tar.xz csci4061-8c05ff01ffcf045d2edace72c1f83486ba8e9af9.tar.zst csci4061-8c05ff01ffcf045d2edace72c1f83486ba8e9af9.zip |
Change mapper
-rw-r--r-- | P1/src/mapper.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/P1/src/mapper.c b/P1/src/mapper.c index e23a484..21818a8 100644 --- a/P1/src/mapper.c +++ b/P1/src/mapper.c @@ -112,12 +112,13 @@ void writeIntermediateDS() { } // Shove word and ones in a file named word.txt - char filename[20]; - sprintf(filename, "output/map_%d/%s.txt", mapperID, tempNode -> key); + char filename[100]; + sprintf(filename, "output/MapOut/Map_%d/%s.txt", mapperID, tempNode -> key); FILE* fptr = fopen(filename, "w"); tempNode = tempNode -> next; fclose(fptr); } + // freeInterDS(&DS); } int main(int argc, char *argv[]) { |