From 6df4c98a968564f90b4919af7bea607a7381a392 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Mon, 2 Nov 2020 18:43:30 -0600 Subject: Help please --- P2/lib/utils.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'P2/lib') 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) -- cgit v1.2.3