281 cx_attr_nonnull |
281 cx_attr_nonnull |
282 cx_attr_export |
282 cx_attr_export |
283 int cxKvListRemoveKey(CxList *list, size_t index); |
283 int cxKvListRemoveKey(CxList *list, size_t index); |
284 |
284 |
285 /** |
285 /** |
|
286 * Returns the key of a list item. |
|
287 * |
|
288 * @param list the list |
|
289 * @param index the index of the element in the list |
|
290 * @return a pointer to the key or @c NULL when the index is out of bounds or the item does not have a key |
|
291 */ |
|
292 cx_attr_nonnull |
|
293 cx_attr_export |
|
294 const CxHashKey *cxKvListGetKey(CxList *list, size_t index); |
|
295 |
|
296 /** |
286 * Inserts an item into the list at the specified index and associates it with the specified key. |
297 * Inserts an item into the list at the specified index and associates it with the specified key. |
287 * |
298 * |
288 * @param list (@c CxList*) the list |
299 * @param list (@c CxList*) the list |
289 * @param index (@c size_t) the index the inserted element shall have |
300 * @param index (@c size_t) the index the inserted element shall have |
290 * @param key (@c CxHashKey, @c char*, @c cxstring, or @c cxmutstr) the key |
301 * @param key (@c CxHashKey, @c char*, @c cxstring, or @c cxmutstr) the key |