Closed daschewie closed 3 years ago
That should be doable without too much trouble.
Take a look at issue_8 branch and see if that will meet your needs. I haven't tried it, because this build won't run on my K, but it compiles and shouldn't break anything.
The code in the issue_8 branch looks great, thanks for the quick turn around.
This was merged in pr#10
The
fseek
function in C is implemented using thesys_chan_seek
system call. Currently sys_chan_seek only supports absolute and cursor relative positioning.We would like support for EOF relative positioning, like the
SEEK_END
feature of fseek.: https://www.tutorialspoint.com/c_standard_library/c_function_fseek.htmExample Usage:
fseek(f, -100, SEEK_END); // moves to 100 chars from the end.