#include <stdio.h>
#include <string.h>
{
if (strlen((const char*)data) <= 5)
}
int
{
const char* strs[] = {
"one", "two", "three", "four", "five", "six", "seven", "eight", "nine",
"ten", "eleven", "twelve", "thirteen", "fourtenn", "fifteen", "sixteen",
"seventeen", "eighteen", "nineteen", "twenty"
};
const char* strings[] = {
"helo", "hera", "starbuck", "kat", "boomer",
"hotdog", "longshot", "jammer", "crashdown", "hardball",
"duck", "racetrack", "apolo", "husker", "freaker",
"skulls", "bulldog", "flat top", "hammerhead", "gonzo"
};
const char *item;
unsigned int i;
for (i = 0; i < 20; i++)
for (i = 0; i < 20; i++)
printf("item #%u: %s\n", i, item);
return 0;
}
EINA_API Eina_Bool eina_array_remove(Eina_Array *array, Eina_Bool(*keep)(void *data, void *gdata), void *gdata)
Rebuilds an array by specifying the data to keep.
Definition: eina_array.c:346
static void eina_array_data_set(const Eina_Array *array, unsigned int idx, const void *data)
Sets the data at a given position in an array.
EINA_API void eina_array_free(Eina_Array *array)
Frees an array.
Definition: eina_array.c:295
#define EINA_ARRAY_ITER_NEXT(array, index, item, iterator)
Iterates through an array's elements.
Definition: eina_array.h:507
static Eina_Bool eina_array_push(Eina_Array *array, const void *data)
Appends a data item to an array.
static void eina_array_clean(Eina_Array *array)
Clears an array of its elements, without deallocating memory.
EINA_API Eina_Array * eina_array_new(unsigned int step)
Creates a new array.
Definition: eina_array.c:276
void ** Eina_Array_Iterator
Type for an iterator on arrays, used with EINA_ARRAY_ITER_NEXT.
Definition: eina_array.h:222
EINA_API int eina_shutdown(void)
Shuts down the Eina library.
Definition: eina_main.c:379
EINA_API int eina_init(void)
Initializes the Eina library.
Definition: eina_main.c:291
#define EINA_TRUE
boolean value TRUE (numerical value 1)
Definition: eina_types.h:539
#define EINA_FALSE
boolean value FALSE (numerical value 0)
Definition: eina_types.h:533
unsigned char Eina_Bool
Type to mimic a boolean.
Definition: eina_types.h:527
#define EINA_UNUSED
Used to indicate that a function parameter is purposely unused.
Definition: eina_types.h:339
Type for an array of data.
Definition: eina_array.h:229