8000 GitHub - andrewschaaf/cat-from: cat a file after seeking to a specified byte offset
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

andrewschaaf/cat-from

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cat a file after seeking to a specified byte offset

Build Status

cat-from --offset 123 foo | ...

Pseudocode

file = fopen(...)

fseek(...offset...)

until done:
  fread(...file...)
  fwrite(...stdout...)

fclose(file)

Design goals

  • Validate arguments with care
  • Detect and handle any {fopen,fseek,fread,fwrite,fclose} errors
  • Minimize latency (launch time, etc)
  • Maximize throughput

About

cat a file after seeking to a specified byte offset

Resou 52CE rces

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0