diff options
author | Matt Strapp <strap012@umn.edu> | 2020-10-04 10:59:15 -0500 |
---|---|---|
committer | Matt Strapp <strap012@umn.edu> | 2020-10-04 10:59:15 -0500 |
commit | 50e4de9d0813bfdd793edf60814f46765cb1734c (patch) | |
tree | e68d4ab3281b839bd2f05d054c9952f1c7cdd4eb /P1 | |
parent | Fix compiler warnings (diff) | |
download | csci4061-50e4de9d0813bfdd793edf60814f46765cb1734c.tar csci4061-50e4de9d0813bfdd793edf60814f46765cb1734c.tar.gz csci4061-50e4de9d0813bfdd793edf60814f46765cb1734c.tar.bz2 csci4061-50e4de9d0813bfdd793edf60814f46765cb1734c.tar.lz csci4061-50e4de9d0813bfdd793edf60814f46765cb1734c.tar.xz csci4061-50e4de9d0813bfdd793edf60814f46765cb1734c.tar.zst csci4061-50e4de9d0813bfdd793edf60814f46765cb1734c.zip |
Don't reinvent the wheel
Diffstat (limited to 'P1')
-rw-r--r-- | P1/src/mapper.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/P1/src/mapper.c b/P1/src/mapper.c index 8bbd2a6..8aff3ec 100644 --- a/P1/src/mapper.c +++ b/P1/src/mapper.c @@ -78,18 +78,7 @@ while (root != NULL) { // emit the <key, value> into intermediate DS // eats the data into the DS void emit(char *key, char *value) { - //Go through intermediateDS, comparing key in list to *key. - //If it exists, somehow add to the value list another "1" to the existing list. - //If it never does (use string compare thing), add it to the end along with the "1". - - /* THIS IS NOT CURRENTLY IMPLEMENTED PROPERLY BUT SHOULD BE ABOUT RIGHT - CONCEPTUALLY. - intermediateDS *tempNode = NULL; - while (root != NULL) { - tempNode = root; - root = root -> next; - } - */ + } // map function |