Array

This is a dynamic array (it can grow, but without moving memory).

 arr = qb_array_create_2(64, sizeof(struct my_struct), 256);
 ...
 res = qb_array_index(arr, idx, (void**)&my_ptr);
 if (res < 0) {
        return res;
 }
 // use my_ptr, now even if there is a grow, this pointer will be valid.

See also:
qbarray.h
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on 18 Mar 2016 for libqb by  doxygen 1.6.1