aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-10-04 14:14:41 -0500
committerMatt Strapp <strap012@umn.edu>2020-10-04 14:14:41 -0500
commit8c05ff01ffcf045d2edace72c1f83486ba8e9af9 (patch)
treed9aa05bbea8cba7ddaafb2806afe3feaca02b39d
parentUpdate mapper again this time pls work dear fucking god (diff)
downloadcsci4061-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.c5
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[]) {