aboutsummaryrefslogtreecommitdiffstats
path: root/P1/src
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-10-04 11:02:33 -0500
committerMatt Strapp <strap012@umn.edu>2020-10-04 11:02:33 -0500
commit7044d6867ecbb5bac8d26ce1f44269ed26f95177 (patch)
treed18d3057be88b8c09544f371842d8d7519175d2e /P1/src
parentDon't reinvent the wheel (diff)
downloadcsci4061-7044d6867ecbb5bac8d26ce1f44269ed26f95177.tar
csci4061-7044d6867ecbb5bac8d26ce1f44269ed26f95177.tar.gz
csci4061-7044d6867ecbb5bac8d26ce1f44269ed26f95177.tar.bz2
csci4061-7044d6867ecbb5bac8d26ce1f44269ed26f95177.tar.lz
csci4061-7044d6867ecbb5bac8d26ce1f44269ed26f95177.tar.xz
csci4061-7044d6867ecbb5bac8d26ce1f44269ed26f95177.tar.zst
csci4061-7044d6867ecbb5bac8d26ce1f44269ed26f95177.zip
Do part of #4 maybe
Diffstat (limited to '')
-rw-r--r--P1/src/mapper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/P1/src/mapper.c b/P1/src/mapper.c
index 8aff3ec..3e0307d 100644
--- a/P1/src/mapper.c
+++ b/P1/src/mapper.c
@@ -87,6 +87,7 @@ void map(char *chunkData){
char *buffer;
while ((buffer = getWord(chunkData, &i)) != NULL){
// get words from buffer & give it to emitter to be put into intermediateDS
+ emit(buffer, "1");
}
// you can use getWord to retrieve words from the
// chunkData one by one. Example usage in utils.h