From 8c05ff01ffcf045d2edace72c1f83486ba8e9af9 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Sun, 4 Oct 2020 14:14:41 -0500 Subject: Change mapper --- P1/src/mapper.c | 5 +++-- 1 file 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[]) { -- cgit v1.2.3