//////////////////////////////
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:
 
  1. void insertion(char buff[1024])
  2. {
  3. new=(N*)malloc(sizeof(N));
  4. new->info=buff;
  5. printf("contents of buffer %s\n",buff);
  6. new->link=NULL;
  7. printf("value is %s\n",new->info);
  8. if(front==NULL)
  9. {
  10. front = new;
  11. rear = new;
  12. }
  13. else
  14. rear->link=new;
  15. rear=new;
  16. }