Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef struct linie{
- struct linie *prev;
- char data;
- struct linie *next;
- }linie;
- typedef linie* Linie;
- typedef struct text{
- struct text *prev;
- Linie data;
- struct text *next;
- }text;
- typedef text* Text;
- Text addLast2(Text l, Linie val)
- {
- Text nou, temp;
- if (l==NULL)
- {
- l = initText(val);
- }
- else
- {
- nou=(text *)malloc(sizeof(text));
- temp=l;
- while(temp->next!=NULL)
- temp=temp->next;
- nou->data=val;
- nou->next=NULL;
- nou->prev=temp;
- temp->next=nou;
- }
- return l;
- }
Advertisement
Add Comment
Please, Sign In to add comment