aboutsummaryrefslogtreecommitdiffstats
path: root/P1/src
diff options
context:
space:
mode:
Diffstat (limited to 'P1/src')
-rw-r--r--P1/src/mapper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/P1/src/mapper.c b/P1/src/mapper.c
index 21818a8..4a1bf1b 100644
--- a/P1/src/mapper.c
+++ b/P1/src/mapper.c
@@ -115,8 +115,9 @@ void writeIntermediateDS() {
char filename[100];
sprintf(filename, "output/MapOut/Map_%d/%s.txt", mapperID, tempNode -> key);
FILE* fptr = fopen(filename, "w");
- tempNode = tempNode -> next;
+ fprintf(fptr, "%s %s", tempNode -> key, ones);
fclose(fptr);
+ tempNode = tempNode -> next;
}
// freeInterDS(&DS);
}