void main_window_add_image(imImage* addr) { LinkedList* ll = LL_insert(&images, addr, LL_APPEND); IupSetAttribute(list, "APPENDITEM", ""); int count = IupGetInt(list, "COUNT"); char id[10]; sprintf(id, "IMAGE%d", count); IupSetAttributeHandle(list, id, ll->iThumbnail); }
int insertEdge(ptr_graph graph,int id,ptr_edge filos,hash_f hash) { ptr_entry node; void *temp; temp = HT_search(graph->table,id,hash); node = (ptr_entry) temp; LL_insert((list_ptr)(node->friends),(void*)filos); return 0; }