aboutsummaryrefslogtreecommitdiffstats
path: root/P1/src
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-10-04 10:37:20 -0500
committerMatt Strapp <strap012@umn.edu>2020-10-04 10:37:20 -0500
commit952c5cd981f780520dfdabd2ca4a5b4e65ac21ae (patch)
tree520ef59aaa383314bfd977ff3306e9478e1df75c /P1/src
parentHelp. It's broken. (diff)
parentMerge branch 'master' of github.umn.edu:STRAP012/csci4061Projects (diff)
downloadcsci4061-952c5cd981f780520dfdabd2ca4a5b4e65ac21ae.tar
csci4061-952c5cd981f780520dfdabd2ca4a5b4e65ac21ae.tar.gz
csci4061-952c5cd981f780520dfdabd2ca4a5b4e65ac21ae.tar.bz2
csci4061-952c5cd981f780520dfdabd2ca4a5b4e65ac21ae.tar.lz
csci4061-952c5cd981f780520dfdabd2ca4a5b4e65ac21ae.tar.xz
csci4061-952c5cd981f780520dfdabd2ca4a5b4e65ac21ae.tar.zst
csci4061-952c5cd981f780520dfdabd2ca4a5b4e65ac21ae.zip
Merge branch 'master' of github.umn.edu:STRAP012/csci4061Projects
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
}