diff options
Diffstat (limited to '')
-rw-r--r-- | P2/lib/utils.c | 5 |
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 +} |