Back to index

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

Go to the source code of this file.

Functions

 zip_source_function (struct zip *za, zip_source_callback zcb, void *ud)

Function Documentation

zip_source_function ( struct zip za,
zip_source_callback  zcb,
void *  ud 
)

Definition at line 43 of file zip_source_function.c.

{
    struct zip_source *zs;

    if (za == NULL)
       return NULL;

    if ((zs=(struct zip_source *)malloc(sizeof(*zs))) == NULL) {
       _zip_error_set(&za->error, ZIP_ER_MEMORY, 0);
       return NULL;
    }

    zs->f = zcb;
    zs->ud = ud;
    
    return zs;
}

Here is the call graph for this function:

Here is the caller graph for this function: