deps/kb_meme/meme-5.0.1/src/array-list.c
/*
 * arraylst_set
 * The passed item is set to be at the passed index.
 */
arraylst_set
The passed item is set to be at the passed index.
arraylst_set The passed item is set to be at the passed index .
void arraylst_set(int index, void *item, ARRAYLST_T *arraylst) {
  if (arraylst == NULL)                     die("arraylst_set: arraylst is NULL!\n");
  if (index < 0 || index >= arraylst->size) die("arraylst_set: index must be within bounds.\n");
  arraylst->array[index] = item;
}
void arraylst_set ( int index , void * item , ARRAYLST_T * arraylst ) { if ( arraylst == NULL ) die ( " \n " ) ; if ( index < 0 || index >= arraylst -> size ) die ( " \n " ) ; arraylst -> array [ index ] = item ; }
arraylst_set
 The passed item is set to be at the passed index.
arraylst_set The passed item is set to be at the passed index .
// test parameters