deps/kb_meme/meme-5.0.1/src/array-list.c
/*
 * arraylst_clear
 * Clear the array list of any items.
 */
arraylst_clear
Clear the array list of any items.
arraylst_clear Clear the array list of any items .
void arraylst_clear(void (*optional_item_destructor)(void*), ARRAYLST_T *arraylst) {
  if (arraylst == NULL) die("arraylst_clear: arraylst is NULL!\n"); 
  if (arraylst->size > 0) arraylst_remove_range(0, arraylst->size, optional_item_destructor, arraylst);
}
void arraylst_clear ( void ( * optional_item_destructor ) ( void * ) , ARRAYLST_T * arraylst ) { if ( arraylst == NULL ) die ( " \n " ) ; if ( arraylst -> size > 0 ) arraylst_remove_range ( 0 , arraylst -> size , optional_item_destructor , arraylst ) ; }
arraylst_clear
 Clear the array list of any items.
arraylst_clear Clear the array list of any items .
// test parameters