Logo Search packages:      
Sourcecode: blender version File versions

void* av_mallocz_static ( unsigned int  size  ) 

allocation of static arrays - do not use for normal allocation.

Definition at line 107 of file utils.c.

References av_fast_realloc(), and av_mallocz_static().

Referenced by av_mallocz_static(), and av_realloc_static().

    void *ptr = av_mallocz(size);

        array_static =av_fast_realloc(array_static, &allocated_static, sizeof(void*)*(last_static+1));
            return NULL;
        array_static[last_static++] = ptr;

    return ptr;

Generated by  Doxygen 1.6.0   Back to index