Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void wyczysc(p_osoba *top)
- {
- p_osoba tmp;
- if((*top)==NULL)
- {
- puts("Lista juz jest pusta");
- return;
- }
- while((*top)!=NULL)
- {
- tmp=(*top)->next;
- free((*top)->imie);
- free((*top)->nazwisko);
- free((*top)->adres);
- free((*top)->miasto);
- free(*top);
- *top=tmp;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement