Требования и тесты

[−]
Arrays
Arrays are similar to standard C arrays, except that they grow automatically as elements are added.
Array size
Array elements can be of any size (though all elements of one array are the same size), and the array can be automatically cleared to '0's and zero-terminated.
[−]
g_array_new
Creates a new GArray.
[−]
zero_terminated
zero_terminated: TRUE if the array should have an extra element at the end which is set to 0.
g_array_sized_new
TRUE if the array should have an extra element at the end with all bits cleared.
clear_
clear_: TRUE if GArray elements should be automatically cleared to 0 when they are allocated.
element_size
element_size: the size of each element in bytes.
ret_val
Returns : the new GArray.