aboutsummaryrefslogtreecommitdiffstats
path: root/P1/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--P1/src/mapper.c6
1 files changed, 5 insertions, 1 deletions
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
}