aboutsummaryrefslogtreecommitdiffstats
path: root/P2/lib
diff options
context:
space:
mode:
authorMatthew Strapp <strap012@umn.edu>2020-10-26 08:49:51 -0500
committerGitHub Enterprise <noreply-github@umn.edu>2020-10-26 08:49:51 -0500
commit3a06aa2a44eb3fa4850d7b12b8192fce1bdac578 (patch)
tree7c398b08a0be744d3301cd7f4448dd30d28fe541 /P2/lib
parentRevert "Add new template" (diff)
parentAdd functions made before (diff)
downloadcsci4061-3a06aa2a44eb3fa4850d7b12b8192fce1bdac578.tar
csci4061-3a06aa2a44eb3fa4850d7b12b8192fce1bdac578.tar.gz
csci4061-3a06aa2a44eb3fa4850d7b12b8192fce1bdac578.tar.bz2
csci4061-3a06aa2a44eb3fa4850d7b12b8192fce1bdac578.tar.lz
csci4061-3a06aa2a44eb3fa4850d7b12b8192fce1bdac578.tar.xz
csci4061-3a06aa2a44eb3fa4850d7b12b8192fce1bdac578.tar.zst
csci4061-3a06aa2a44eb3fa4850d7b12b8192fce1bdac578.zip
Merge pull request #10 from STRAP012/NewTemplate
Change files changed by new template (should probably not break things)
Diffstat (limited to '')
-rw-r--r--P2/lib/utils.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/P2/lib/utils.c b/P2/lib/utils.c
index 603a699..4d815a0 100644
--- a/P2/lib/utils.c
+++ b/P2/lib/utils.c
@@ -1,6 +1,5 @@
#include "utils.h"
-//Receive from send and return the chonk
char *getChunkData(int mapperID) {
//Message
struct msgBuffer message;
@@ -79,7 +78,7 @@ void shuffle(int nMappers, int nReducers) {
// check if the character is valid for a word
int validChar(char c){
- return ((tolower(c) >= 'a') && tolower(c <='z')) ||
+ return (tolower(c) >= 'a' && tolower(c) <='z') ||
(c >= '0' && c <= '9');
}
@@ -141,4 +140,4 @@ void bookeepingCode(){
removeOutputDir();
sleep(1);
createOutputDir();
-} \ No newline at end of file
+}