deps/kb_meme/meme-5.0.1/src/array-list.c
/*
 * arraylst_apply
 * Applies a function to each item of the array list.
 */
arraylst_apply
Applies a function to each item of the array list.
arraylst_apply Applies a function to each item of the array list .
void arraylst_apply(void (*fun)(void*), ARRAYLST_T *arraylst) {
  int i;
  if (arraylst == NULL)                       die("arraylst_apply: arraylst is NULL!\n"); 
  if (fun == NULL)                            die("arraylst_apply: fun is NULL!\n");
  for (i = 0; i < arraylst->size; ++i) {
    fun(arraylst->array[i]);
  }
}
void arraylst_apply ( void ( * fun ) ( void * ) , ARRAYLST_T * arraylst ) { int i ; if ( arraylst == NULL ) die ( " \n " ) ; if ( fun == NULL ) die ( " \n " ) ; for ( i = 0 ; i < arraylst -> size ; ++ i ) { fun ( arraylst -> array [ i ] ) ; } }
arraylst_apply
 Applies a function to each item of the array list.
arraylst_apply Applies a function to each item of the array list .