43 if ((s == NULL) || (strlen(s) == 0))
46 for (p = head; p != NULL; p = p->
next) {
47 if (strcasecmp(p->
key, s) == 0)
71 if ((p->
key = strdup(s)) == NULL) {
76 if (data != NULL && size > 0) {
77 if ((p->
data = malloc(size)) != NULL) {
103 if ((s == NULL) || (strlen(s) == 0))
106 for (p = head; p != NULL; p = p->
next) {
107 if (strcasecmp(p->
key, s) == 0)
113 if (p->
data != NULL) {
116 if (data != NULL && size > 0) {
117 if ((p->
data = malloc(size)) != NULL) {
143 if ((key == NULL) || (strlen(key) == 0))
146 for (p = head; p != NULL; p = p->
next) {
147 if (strcasecmp(p->
key, key) == 0) {
154 if (func != NULL && p->
data != NULL)
178 if ((s == NULL) || (strlen(s) == 0))
181 for (p = head; p != NULL; p = p->
next) {
182 if (strcasecmp(p->
key, s) == 0)
201 while (head != NULL) {
205 if (func != NULL && p->
data != NULL)
LISTR_T * zeLinkedList_Add(LISTR_T *head, char *s, int nb, void *data, size_t size)
int zeLinkedList_CountInc(LISTR_T *head, char *key)
bool zeLinkedList_Clear(LISTR_T *head, LISTCLEAR_F func)
void(* LISTCLEAR_F)(void *)
int zeLinkedList_CountSet(LISTR_T *head, char *key, int nb)
bool zeLinkedList_Remove(LISTR_T *head, char *key, LISTCLEAR_F func)
LISTR_T * zeLinkedList_Set(LISTR_T *head, char *s, int nb, void *data, size_t size)
#define ZE_LogSysError(...)
LISTR_T * zeLinkedList_Find(LISTR_T *head, char *s)
int zeLinkedList_CountGet(LISTR_T *head, char *key)