Hello Guys,
I have found many source codes to implement linked list. But all are inserting or deleting the node values after user's choice. I dont want that. Insertion should happen dynamically.
I have a client program running on another system. I fetch the data from that system through my server program.As and when i receive the data, I shd insert them into my linked list.
Kindly help me dng this.

Thanks in advance.
Deepika

Recommended Answers

All 6 Replies

It's identical to what you've found. The data just comes from somewhere other than the keyboard. So the data input is a little different, all the rest is the same.

commented: Yes +20

It's identical to what you've found. The data just comes from somewhere other than the keyboard. So the data input is a little different, all the rest is the same.

Yup Right..Can you tell me how it goes?

No, that's your job. You know the particulars of your system and client/server needs. We haven't a clue what your system, communications protocols, nor desires are.

Sit down with pencil and paper and start sketching out what you have, how you can use it, and so on. We can help when you get to the coding phase and maybe a little during the design phase.

> Yup Right..Can you tell me how it goes?
You already said that in post #1.
Like Walt said, it's all about "use and adapt".

//////////////////////////////
CISM_CASM_RECV_REVERSAL_ORDER_ID_01234560000000000100000000010002501230000000000100000000019633789956387452
CISM_CASM_RECV_REVERSAL_ORDER_ID_01234560000000000100000000010002501230000000000100000000019633789956387452
CISM_CASM_RECV_REVERSAL_ORDER_ID_01234560000000000100000000010002501230000000000100000000019633789956387452
CISM_CASM_RECV_REVERSAL_ORDER_ID_01234560000000000100000000010002501230000000000100000000019633789956387452
//////////////////////////
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.

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;

		}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.