aboutsummaryrefslogtreecommitdiffstats
path: root/P1
diff options
context:
space:
mode:
Diffstat (limited to 'P1')
-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[]) {