Commit 8a25c9e9 authored by Zara Saldanha's avatar Zara Saldanha

Update receiver.c

parent f3dd8c0a
......@@ -23,10 +23,10 @@ int main(int argc, char* argv[]){
char *split = malloc(file_size+1);
fread(split, file_size,1,file);
split[file_size]=0;
line = strok(split,"\n");
line = strtok(split,"\n");
while(line != NULL) {
strcpy(string,line);
line = strok(NULL,"\n");
line = strtok(NULL,"\n");
count++;
}
printf("%s\n",string);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment