I am currently learning low-level C in school, working with files and stuff, and I have a task to rewrite the Unix system function Tail. My algorithm works in the following