src/utils/list.h
/**
 * Appends element e to list l. Does not check for duplicates.
 * Returns 1.
 */
Appends element e to list l. Does not check for duplicates.
Returns 1.
Appends element e to list l . Does not check for duplicates . Returns 1 .
inline char list_add(void* e, List* l) {
	void** tmp = realloc(l->elements, (l->size + 1) * sizeof(void*));
	assert(tmp != NULL);
	l->elements = tmp;
	l->elements[l->size] = e;
	++l->size;
	return 1;
}
inline char list_add ( void * e , List * l ) { void * * tmp = realloc ( l -> elements , ( l -> size + 1 ) * sizeof ( void * ) ) ; assert ( tmp != NULL ) ; l -> elements = tmp ; l -> elements [ l -> size ] = e ; ++ l -> size ; return 1 ; }
Appends element e to list l. Does not check for duplicates.
Appends element e to list l . Does not check for duplicates .