diff options
author | Andrea Smith <smit9523@umn.edu> | 2020-10-28 19:30:32 -0500 |
---|---|---|
committer | Andrea Smith <smit9523@umn.edu> | 2020-10-28 19:30:32 -0500 |
commit | 49508f44d644c055ceaaf0cc590657f35c844524 (patch) | |
tree | 7b8452f5eb13be48569b5aa9940a7e9de25aa827 /P2 | |
parent | IT still no work (diff) | |
download | csci4061-49508f44d644c055ceaaf0cc590657f35c844524.tar csci4061-49508f44d644c055ceaaf0cc590657f35c844524.tar.gz csci4061-49508f44d644c055ceaaf0cc590657f35c844524.tar.bz2 csci4061-49508f44d644c055ceaaf0cc590657f35c844524.tar.lz csci4061-49508f44d644c055ceaaf0cc590657f35c844524.tar.xz csci4061-49508f44d644c055ceaaf0cc590657f35c844524.tar.zst csci4061-49508f44d644c055ceaaf0cc590657f35c844524.zip |
sendChunkData brainstorming
Diffstat (limited to 'P2')
-rw-r--r-- | P2/lib/utils.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/P2/lib/utils.c b/P2/lib/utils.c index 687f36e..56bd3cc 100644 --- a/P2/lib/utils.c +++ b/P2/lib/utils.c @@ -46,8 +46,19 @@ void sendChunkData(char *inputFile, int nMappers) { // printf("%s\n", message.msgText); /* Go to the end of the chunk, check if final character is a space if character is a space, do nothing - else cut off before that word and put back file */ + else cut off before that word and put back file. + + Maybe copy message.msgText into a new array, do the + backwards iteration, and then replace message.msgText + with the temp array? Or something? */ + // TODO! help + + // int i = 1023; + // while(message.msgText[i] != ' ') { + // message.msgText + // } + message.msgType = map++; //THIS IS DEBUG, NOT ACTUALLY FUNCTIONAL (like at all) msgsnd(msgid, &message, map, 0); |