Back to index

php5  5.3.10
zip_source_file.c File Reference
#include <errno.h>
#include <stdio.h>
#include "zipint.h"

Go to the source code of this file.


 zip_source_file (struct zip *za, const char *fname, off_t start, off_t len)

Function Documentation

zip_source_file ( struct zip za,
const char *  fname,
off_t  start,
off_t  len 

Definition at line 44 of file zip_source_file.c.

    if (za == NULL)
       return NULL;

    if (fname == NULL || start < 0 || len < -1) {
       _zip_error_set(&za->error, ZIP_ER_INVAL, 0);
       return NULL;

    return _zip_source_file_or_p(za, fname, NULL, start, len);

Here is the call graph for this function: