From 59f9b753e3dac069b446925405dc16008fb4484e Mon Sep 17 00:00:00 2001 From: Andrea Smith Date: Sat, 3 Oct 2020 17:01:52 -0500 Subject: Update --- P1/src/mapper.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'P1/src') diff --git a/P1/src/mapper.c b/P1/src/mapper.c index f1299b7..a70f352 100644 --- a/P1/src/mapper.c +++ b/P1/src/mapper.c @@ -76,8 +76,14 @@ while (root != NULL) { } // emit the into intermediate DS +// eats the data into the DS void emit(char *key, char *value) { - + // Traverse the value list + intermediateDS *tempNode = NULL; + while (root != NULL) { + tempNode = root; + root = root -> next; + } } // map function @@ -89,6 +95,7 @@ void map(char *chunkData){ // write intermediate data to separate word.txt files // Each file will have only one line : word 1 1 1 1 1 ... +// poops the data out into separate .txt files void writeIntermediateDS() { } -- cgit v1.2.3