deps/kb_meme/meme-5.0.1/src/object-list.c
/*************************************************************************
 * Get the next object in a list; saves state.  
 * First call retrieves first object; successive calls retrieve next ones.
 * Returns NULL if at end * of list.  
 * The next call after that will retrieve the first object again.
 *************************************************************************/
Get the next object in a list; saves state.
First call retrieves first object; successive calls retrieve next ones.
Returns NULL if at end * of list.
The next call after that will retrieve the first object again.
Get the next object in a list ; saves state . First call retrieves first object ; successive calls retrieve next ones . Returns NULL if at end * of list . The next call after that will retrieve the first object again .
void* retrieve_next_object
 (OBJECT_LIST_T* an_object_list)
{
  if (an_object_list->next_object == an_object_list->num_objects) {
    an_object_list->next_object = 0;		
    return(NULL);
  }
  else {
    return(an_object_list->objects[an_object_list->next_object++].value);
  }
}
void * retrieve_next_object ( OBJECT_LIST_T * an_object_list ) { if ( an_object_list -> next_object == an_object_list -> num_objects ) { an_object_list -> next_object = 0 ; return ( NULL ) ; } else { return ( an_object_list -> objects [ an_object_list -> next_object ++ ] . value ) ; } }
Get the next object in a list; saves state.
Get the next object in a list ; saves state .
// rewind