cat a file after seeking to a specified byte offset
cat-from --offset 123 foo | ...
file = fopen(...)
fseek(...offset...)
until done:
fread(...file...)
fwrite(...stdout...)
fclose(file)
- Validate arguments with care
- Detect and handle any {fopen,fseek,fread,fwrite,fclose} errors
- Minimize latency (launch time, etc)
- Maximize throughput