From 04f3434105a8fb8c8d97d9bd373e3a0c828405b6 Mon Sep 17 00:00:00 2001 From: Andrea Smith Date: Sun, 4 Oct 2020 10:11:11 -0500 Subject: Update --- P1/src/mapper.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'P1/src/mapper.c') diff --git a/P1/src/mapper.c b/P1/src/mapper.c index f9eec52..8bbd2a6 100644 --- a/P1/src/mapper.c +++ b/P1/src/mapper.c @@ -94,7 +94,11 @@ void emit(char *key, char *value) { // map function void map(char *chunkData){ - + int i = 0; + char *buffer; + while ((buffer = getWord(chunkData, &i)) != NULL){ + // get words from buffer & give it to emitter to be put into intermediateDS + } // you can use getWord to retrieve words from the // chunkData one by one. Example usage in utils.h } -- cgit v1.2.3