Lines Matching defs:nv
48 struct NameValue * nv;
49 nv = malloc(sizeof(struct NameValue)+l+1);
50 strcpy(nv->name, "rootElement");
51 memcpy(nv->value, name, l);
52 nv->value[l] = '\0';
53 LIST_INSERT_HEAD(&(data->head), nv, entries);
61 struct NameValue * nv;
64 nv = malloc(sizeof(struct NameValue)+l+1);
65 strncpy(nv->name, data->curelt, 64);
66 nv->name[63] = '\0';
67 memcpy(nv->value, datas, l);
68 nv->value[l] = '\0';
69 LIST_INSERT_HEAD(&(data->head), nv, entries);
93 struct NameValue * nv;
94 while((nv = pdata->head.lh_first) != NULL)
96 LIST_REMOVE(nv, entries);
97 free(nv);
105 struct NameValue * nv;
107 for(nv = pdata->head.lh_first;
108 (nv != NULL) && (p == NULL);
109 nv = nv->entries.le_next)
111 if(strcmp(nv->name, Name) == 0)
112 p = nv->value;
124 struct NameValue * nv;
126 for(nv = pdata.head.lh_first;
127 nv != NULL;
128 nv = nv->entries.le_next)
130 printf("%s = %s\n", nv->name, nv->value);