wrong character in the GSM 03.38 table (ç for Ç)
[gammu.git] / helper / array.h
blob671ad407ed5f8f1205920618d1e320533d41fa12
1 /**
2 * \file array.h
3 * \author Michal Čihař
5 * String arrays handling code.
6 */
7 #ifndef __gammu_array_h
8 #define __gammu_array_h
10 #include <gammu-types.h>
11 #include <string.h>
13 typedef struct {
14 /**
15 * Number of used elements.
17 size_t used;
18 /**
19 * Number of allocated elements.
21 size_t allocated;
22 /**
23 * The elements.
25 char **data;
26 } GSM_StringArray;
28 /**
29 * Initiates new array structures.
31 void GSM_StringArray_New(GSM_StringArray *array);
33 /**
34 * Frees all memory allocated by array.
36 void GSM_StringArray_Free(GSM_StringArray *array);
38 /**
39 * Appends string to the array.
41 gboolean GSM_StringArray_Add(GSM_StringArray *array, const char *string);
43 /**
44 * Checks whether string is present in array.
46 gboolean GSM_StringArray_Find(GSM_StringArray *array, const char *string);
48 #endif
49 /* Editor configuration
50 * vim: noexpandtab sw=8 ts=8 sts=8 tw=72: