Tizen Native API
|
Eina inline array of strings
This example creates an inline array of strings, adds some elements, and then prints them. This example is based on Basic array usage and Eina inline array usage.
We start with some variable declarations and eina initialization:
We then create the array much like we did on Eina inline array usage :
The point is this example significantly differs from the first eina inline array example. We are not going to add the strings themselves to the array since their size varies, we are going to store a pointer to the strings instead. We therefore use char**
to populate our inline array:
The source for this example: eina_inarray_02.c