| .TH "ZIP_SOURCE_FILE" "3" "December 29, 2016" "NiH" "Library Functions Manual" |
| \- create data source from a file |
| \fBzip_source_file\fR(\fIzip_t\ *archive\fR, \fIconst\ char\ *fname\fR, \fIzip_uint64_t\ start\fR, \fIzip_int64_t\ len\fR); |
| \fBzip_source_file_create\fR(\fIconst\ char\ *fname\fR, \fIzip_uint64_t\ start\fR, \fIzip_int64_t\ len\fR, \fIzip_error_t\ *error\fR); |
| \fBzip_source_file_create\fR() |
| create a zip source from a file. |
| is 0 or \-1, the whole file (starting from |
| If the file supports seek, the source can be used to open a zip archive from. |
| The file is opened and read when the data from the source is used, usually by |
| \fBzip_open_from_source\fR(). |
| Upon successful completion, the created source is returned. |
| is returned and the error code in |
| is set to indicate the error. |
| \fBzip_source_file_create\fR() |
| Required memory could not be allocated. |
| Dieter Baron <\fIdillo@nih.at\fR> |
| Thomas Klausner <\fItk@giga.or.at\fR> |