logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

iarray_init - initialize iarray data structure

Description

       iarray_init  initializes  an  iarray so that it can hold elements of size elemsize.  iarray_init does not
       actually allocate anything, so it can not fail.

Name

       iarray_init - initialize iarray data structure

See Also

iarray_allocate(3), iarray_get(3), iarray_free(3)

                                                                                                  iarray_init(3)

Syntax

#include<libowfat/iarray.h>

       void iarray_init(array* x, size_t elemsize);

         iarray x;
         int64 pos;
         t* p = iarray_init(&x,sizeof(element));

See Also