libqb
1.0.2
Main Page
Related Pages
Data Structures
Files
Examples
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
index
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
Generated by
1.8.5