427 |
struct block *bp; |
struct block *bp; |
428 |
|
|
429 |
if (text->start != NULL) { |
if (text->start != NULL) { |
430 |
for (bp = text->start ; bp != text->last ; bp = bp->next) |
for (bp = text->start ; bp != text->last ; bp = bp->next) { |
431 |
fwrite(bp->text, sizeof (char), BLOCKSIZE, fp); |
if ((fwrite(bp->text, sizeof (char), BLOCKSIZE, fp)) != BLOCKSIZE) |
432 |
fwrite(bp->text, sizeof (char), BLOCKSIZE - text->nleft, fp); |
error("Can't write data\n"); |
433 |
|
} |
434 |
|
if ((fwrite(bp->text, sizeof (char), BLOCKSIZE - text->nleft, fp)) != (BLOCKSIZE - text->nleft)) |
435 |
|
error("Can't write data\n"); |
436 |
} |
} |
437 |
} |
} |
438 |
|
|