diff options
author | Matt Strapp <strap012@umn.edu> | 2020-10-04 10:37:20 -0500 |
---|---|---|
committer | Matt Strapp <strap012@umn.edu> | 2020-10-04 10:37:20 -0500 |
commit | 952c5cd981f780520dfdabd2ca4a5b4e65ac21ae (patch) | |
tree | 520ef59aaa383314bfd977ff3306e9478e1df75c | |
parent | Help. It's broken. (diff) | |
parent | Merge branch 'master' of github.umn.edu:STRAP012/csci4061Projects (diff) | |
download | csci4061-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
-rw-r--r-- | P1/src/mapper.c | 6 |
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 } |