All pastes #63610 Raw Edit

Mine

public text v1 · immutable
#63610 ·published 2006-06-10 11:04 UTC
rendered paste body
void *m_alloc(void *tmp, int n)
{
  
  tmp = (void *)malloc(n);
  if (tmp == NULL) {
    fprintf(stderr, "ERRORE: memoria insufficiente.\n");
    exit (1);
  }

  return (tmp);
}    

void *find_end(void *lista){
void *tmp;
	tmp=lista;
	while (tmp->next!=NULL) {
		tmp=tmp->next;
	}
return tmp;
}