#include "liste.h" cvor* novi_cvor(int br) { cvor *n = malloc(sizeof(cvor)); n->vr = br; n->sl = NULL; return n; } cvor* ubaci_na_pocetak(cvor *l, int br) { cvor* n = novi_cvor(br); if (l == NULL) l = n; else { n->sl = l; l = n; } return l; } void ispis(cvor *l) { if (l != NULL) { printf("%d ", l->vr); ispis(l->sl); } else printf("\n"); } void oslobodi(cvor *lista) { if (lista != NULL) { oslobodi(lista->sl); free(lista); } }