diff options
author | Matt Strapp <strap012@umn.edu> | 2020-11-02 18:43:30 -0600 |
---|---|---|
committer | Matt Strapp <strap012@umn.edu> | 2020-11-02 18:43:30 -0600 |
commit | 6df4c98a968564f90b4919af7bea607a7381a392 (patch) | |
tree | 366f0582cf4fc1a10b75e4e8c1153c0e985d0f04 | |
parent | Pain (diff) | |
download | csci4061-6df4c98a968564f90b4919af7bea607a7381a392.tar csci4061-6df4c98a968564f90b4919af7bea607a7381a392.tar.gz csci4061-6df4c98a968564f90b4919af7bea607a7381a392.tar.bz2 csci4061-6df4c98a968564f90b4919af7bea607a7381a392.tar.lz csci4061-6df4c98a968564f90b4919af7bea607a7381a392.tar.xz csci4061-6df4c98a968564f90b4919af7bea607a7381a392.tar.zst csci4061-6df4c98a968564f90b4919af7bea607a7381a392.zip |
Help please
-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) |