All pastes #63615 Raw Edit

Miscellany

public c v1 · immutable
#63615 ·published 2006-06-10 11:09 UTC
rendered paste body
struct node {  void *item;  struct node *next;};typedef struct node *NODEPTR;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(node *lista){  node *tmp;  tmp=lista;  while (tmp->next!=NULL) {     tmp=tmp->next;  }  return tmp;}