diff options
-rw-r--r-- | P2/lib/utils.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/P2/lib/utils.c b/P2/lib/utils.c index 577ca64..8abac72 100644 --- a/P2/lib/utils.c +++ b/P2/lib/utils.c @@ -50,12 +50,13 @@ void sendChunkData(char *inputFile, int nMappers) { // TODO! help - int i = 1023; - while(message.msgText[i] != ' ') { - i--; - printf("%d\n", i); - } - lseek(fd, (i - 1023), SEEK_CUR); + // int i = 1023; + // while(message.msgText[i] != ' ') { + // i--; + // message.msgText[i] == '\0'; + // printf("%d\n", i); + // } + // lseek(fd, (i - 1023), SEEK_CUR); printf("%s\n", message.msgText); message.msgType = (map++ % nMappers) + 1 ; //THIS IS DEBUG, NOT ACTUALLY FUNCTIONAL (like at all) |