Back to index

php5  5.3.10
Functions
zip_new.c File Reference
#include <stdlib.h>
#include "zipint.h"

Go to the source code of this file.

Functions

struct zip_zip_new (struct zip_error *error)

Function Documentation

struct zip* _zip_new ( struct zip_error error) [read]

Definition at line 47 of file zip_new.c.

{
    struct zip *za;

    za = (struct zip *)malloc(sizeof(struct zip));
    if (!za) {
       _zip_error_set(error, ZIP_ER_MEMORY, 0);
       return NULL;
    }

    za->zn = NULL;
    za->zp = NULL;
    _zip_error_init(&za->error);
    za->cdir = NULL;
    za->ch_comment = NULL;
    za->ch_comment_len = -1;
    za->nentry = za->nentry_alloc = 0;
    za->entry = NULL;
    za->nfile = za->nfile_alloc = 0;
    za->file = NULL;
    za->flags = za->ch_flags = 0;
    
    return za;
}

Here is the call graph for this function:

Here is the caller graph for this function: