Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void add(list *pl, unsigned pos, int element)
- {
- if(pl == NULL) return;
- list l = *pl;
- list temp;
- unsigned i = 1;
- temp=(list)malloc(sizeof(list));
- temp->content = element;
- temp->succ=NULL;
- if(l==NULL || pos=0)
- {
- *pl=temp;
- temp->succ=l;
- l=temp;
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement