EmbLogic's Blog

Appending a linked list at the end of another linked list in C

RCS file: append_list.c,v
Working file: append_list.c
head: 1.17
branch:
locks: strict
root: 1.17
access list:
symbolic names:
keyword substitution: kv
total revisions: 17;    selected revisions: 17
description:
Program that appends a linked list to another linked list.
—————————-
revision 1.17    locked by: root;
date: 2014/01/12 20:30:09;  author: root;  state: Exp;  lines: +7 -5
Logical error is fixed.
Issue:Linking of the last node of the first list with the first node
of the second list is not getting created.
—————————-
revision 1.16
date: 2014/01/12 20:18:21;  author: root;  state: Exp;  lines: +10 -9
Logical error in the append_function,checking after using double
pointers.
In the display function updated value is not getting passed.
—————————-
revision 1.15
date: 2014/01/12 20:08:28;  author: root;  state: Exp;  lines: +1 -0
Logical error is present in the append function.
program is not returning control to the user.
Issue:break statement is not included inside the while loop.
—————————-
revision 1.14
date: 2014/01/12 20:05:13;  author: root;  state: Exp;  lines: +6 -2
Declaration error fixed.
Issue: prototype of the function append_list() is missing.
—————————-
revision 1.13
date: 2014/01/12 20:02:33;  author: root;  state: Exp;  lines: +21 -3
append_list() function is implemented.
—————————-
revision 1.12
date: 2014/01/12 19:46:53;  author: root;  state: Exp;  lines: +1 -0
declaration error fixed.
—————————-
revision 1.11
date: 2014/01/12 19:45:50;  author: root;  state: Exp;  lines: +9 -1
display function is added for the first linked list.
—————————-
revision 1.10
date: 2014/01/12 19:41:22;  author: root;  state: Exp;  lines: +6 -0
exit() function is added in the program so that the user can
come out of the program.
—————————-
revision 1.9
date: 2014/01/12 19:38:01;  author: root;  state: Exp;  lines: +2 -0
Segmentation fault occurred in the program.
Possible reasons:After selecting case 3,case 4 also is getting selected
because break statement is not included.
—————————-
revision 1.8
date: 2014/01/12 19:35:47;  author: root;  state: Exp;  lines: +21 -8
insert_node() function for both first and second linked list is implemented.
Checking the functionality of the insert function.
—————————-
revision 1.7
date: 2014/01/11 14:50:48;  author: root;  state: Exp;  lines: +13 -3
If the creation of linked list is successfull display an appropriate
message to the user.
—————————-
revision 1.6
date: 2014/01/11 14:46:24;  author: root;  state: Exp;  lines: +2 -0
Prototype of the create_node() and insert_value() is added.
—————————-
revision 1.5
date: 2014/01/11 14:44:53;  author: root;  state: Exp;  lines: +1 -0
Header file:<stdlib.h> is added to support the exit() and malloc() function.
—————————-
revision 1.4
date: 2014/01/11 14:42:55;  author: root;  state: Exp;  lines: +12 -1
create_node() function is implemented to insert the nodes in the linked list.
Checking whether the functionality is correct or not.
—————————-
revision 1.3
date: 2014/01/11 14:38:42;  author: root;  state: Exp;  lines: +20 -0
Structure is defined having 2 data members: a info part and a pointer
to a structure of the same type.
—————————-
revision 1.2
date: 2014/01/11 14:34:58;  author: root;  state: Exp;  lines: +1 -1
Layout of the program is prepared by preparing the MAIN MENU.
—————————-
revision 1.1
date: 2014/01/11 14:34:20;  author: root;  state: Exp;
Initial revision
=============================================================================

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>