list.c
/* Remove first/last node and return their data*/
Remove first/last node and return their data
Remove first / last node and return their data
void list_pop(list_t *_list,void *front_data)
{
	if (!_list->len) return;
	memcpy(front_data,list_node_get_data(_list->head),_list->data_size);
	list_delete(_list,&_list->head);
}
void list_pop ( list_t * _list , void * front_data ) { if ( ! _list -> len ) return ; memcpy ( front_data , list_node_get_data ( _list -> head ) , _list -> data_size ) ; list_delete ( _list , & _list -> head ) ; }
Remove first/last node and return their data
Remove first / last node and return their data