aboutsummaryrefslogtreecommitdiffstats
path: root/P2/lib
diff options
context:
space:
mode:
Diffstat (limited to 'P2/lib')
-rw-r--r--P2/lib/utils.c6
-rw-r--r--P2/lib/utils.obin0 -> 16544 bytes
2 files changed, 3 insertions, 3 deletions
diff --git a/P2/lib/utils.c b/P2/lib/utils.c
index fa9c235..4e27a3b 100644
--- a/P2/lib/utils.c
+++ b/P2/lib/utils.c
@@ -39,18 +39,18 @@ void sendChunkData(char *inputFile, int nMappers) {
// construct chunks of 1024 bytes
while(fgets(message.msgText, chunkSize + 1, file) != NULL) {
- // TODO! help
int i = 1023;
while((validChar(message.msgText[i]) )) {
message.msgText[i] = '\0';
i--;
}
printf("%d\n", validChar(message.msgText[i]));
- printf("test\n");
+ // DEBUG!
+
fseek(file, (i - 1023), SEEK_CUR);
printf("%s\n", message.msgText);
message.msgType = (map++ % nMappers) + 1 ;
- //THIS IS DEBUG, NOT ACTUALLY FUNCTIONAL (like at all)
+ //DEBUG! NOT ACTUALLY FUNCTIONAL (like at all)
msgsnd(msgid, &message, map, 0);
}
diff --git a/P2/lib/utils.o b/P2/lib/utils.o
new file mode 100644
index 0000000..4a18e0f
--- /dev/null
+++ b/P2/lib/utils.o
Binary files differ