480:7bb47ddc1b5e | 481:ff477f1f7765 |
---|---|
312 } | 312 } |
313 | 313 |
314 return r; | 314 return r; |
315 } | 315 } |
316 | 316 |
317 int tar_seek(TarInputStream *stream, long offset, int whence) { | |
318 return fseek(stream->file, offset, whence); | |
319 } | |
320 | |
317 int tar_inputstream_close(TarInputStream *tar) { | 321 int tar_inputstream_close(TarInputStream *tar) { |
318 if(tar->cur_entry.path) { | 322 if(tar->cur_entry.path) { |
319 free(tar->cur_entry.path); | 323 free(tar->cur_entry.path); |
320 } | 324 } |
321 free(tar); | 325 free(tar); |