The task:

Implement a system function that would allow the user to delete a segment of a file located between two addresses specified as offsets and compress the file.

In the training manual somehow sluggish about it. You can poke where to read.

    1 answer 1

    Copy the "tail" to the beginning of the size of the segment to be deleted. Then trim (man 2 ftruncate) the file.

    • for sure. The best option is Skegg
    • thanks for the help - studentus