deps/kb_meme/meme-5.0.1/src/array-list.c
/*
 * arraylst_peek
 * Gets the item at the last index. Returns NULL if no items.
 */
arraylst_peek
Gets the item at the last index. Returns NULL if no items.
arraylst_peek Gets the item at the last index . Returns NULL if no items .
void *arraylst_peek(ARRAYLST_T *arraylst) {
  if (arraylst == NULL)                     die("arraylst_get: arraylst is NULL!\n");
  if (arraylst->size == 0) return NULL;
  return arraylst->array[arraylst->size - 1];
}
void * arraylst_peek ( ARRAYLST_T * arraylst ) { if ( arraylst == NULL ) die ( " \n " ) ; if ( arraylst -> size == 0 ) return NULL ; return arraylst -> array [ arraylst -> size - 1 ] ; }
arraylst_peek
 Gets the item at the last index.
arraylst_peek Gets the item at the last index .