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