//////////////////////////////
CISM_CASM_RECV_REVERSAL_ORDER_ID_01234560000000000 10000000001000250123000000000010000000001963378995 6387452
CISM_CASM_RECV_REVERSAL_ORDER_ID_01234560000000000 10000000001000250123000000000010000000001963378995 6387452
CISM_CASM_RECV_REVERSAL_ORDER_ID_01234560000000000 10000000001000250123000000000010000000001963378995 6387452
CISM_CASM_RECV_REVERSAL_ORDER_ID_01234560000000000 10000000001000250123000000000010000000001963378995 6387452
//////////////////////////
this is the value in my buffer which has to be inserted to the linked list.the whole contents come in a single buffer. but i should insert each line in a different node in the linked list. How can I do it?
This is my code for insertion.
Code:
- void insertion(char buff[1024])
- {
- new=(N*)malloc(sizeof(N));
- new->info=buff;
- printf("contents of buffer %s\n",buff);
- new->link=NULL;
- printf("value is %s\n",new->info);
- if(front==NULL)
- {
- front = new;
- rear = new;
- }
- else
- rear->link=new;
- rear=new;
- }