EmbLogic's Blog

LINKLIST-creation,insertion,deletion,sorting

RCS file: ./practicesession.c,v
Working file: ./practicesession.c
head: 1.13
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 13;    selected revisions: 13
description:
this is the initial file that contain 2 function create_linklist,create_node() and 1 structure named node
we are calling the create_linklist() in main
yet to compile just saving the rcs file
—————————-
revision 1.13
date: 2014/02/26 17:24:16;  author: root;  state: Exp;  lines: +11 -3
fully tested on all the menu items
Tested ok!!!
—————————-
revision 1.12
date: 2014/02/26 16:49:43;  author: root;  state: Exp;  lines: +39 -24
introduce sorting of linklist at case 5
menu is press 1 for creating linklist
press2 for insertion at end,begining and nth node
press3 for deleting at the nth node entered by user
press4 for display of link list
press5 for sorting the linkilist in assending order
code working fine!
—————————-
revision 1.11
date: 2014/02/24 09:39:11;  author: root;  state: Exp;  lines: +36 -1
insert case for sorting function for the sorting of linklist
error:logistic problem
—————————-
revision 1.10
date: 2014/02/24 05:43:13;  author: root;  state: Exp;  lines: +17 -10
added case 3 to delete a node from the enterred linklist .
user given option to enter node to delete and we have to go to a point 1 less than the node to be deleted and then adding logic to delete and
after that call case 4 to display the orinal node.
—————————-
revision 1.9
date: 2014/02/23 18:50:45;  author: root;  state: Exp;  lines: +24 -9
enterred the function for inserting node at a particular location,beggining and end
heading towards function to delete a node
—————————-
revision 1.8
date: 2014/02/23 17:47:33;  author: root;  state: Exp;  lines: +43 -13
enterred display function and insert function with menu
1.link at the end,end at the beggining of the link list
code working fine at this stage.
—————————-
revision 1.7
date: 2014/02/23 16:19:52;  author: root;  state: Exp;  lines: +84 -30
included display function in the menu at no.4location and display the value of info for each link
—————————-
revision 1.6
date: 2014/02/23 08:02:12;  author: root;  state: Exp;  lines: +25 -15
malloc failed condition includded in the create node and create linklist function
—————————-
revision 1.5
date: 2014/02/22 18:30:08;  author: root;  state: Exp;  lines: +9 -7
initialize one more pointer *hello instance of struct node and call it in create_linklist(hello),
it will create structure space and we are putting the address of hello in start->next and printf the address of meemory alloted by hello
—————————-
revision 1.4
date: 2014/02/22 18:22:26;  author: root;  state: Exp;  lines: +9 -5
a new structure pointer to struct node is defined and pass the hello pointer to create_linklist,
so the memory is alloted and hence create a new node
—————————-
revision 1.3
date: 2014/02/22 18:15:46;  author: root;  state: Exp;  lines: +21 -21
passing pointer of structure from mainto the create_linklist and alloting memory each time we pass a structure pointer from the main,we just have to pass the structure pointer to create_linklist the memory is alloted
—————————-
revision 1.2
date: 2014/02/22 17:55:23;  author: root;  state: Exp;  lines: +33 -22
included menu in the program in main 1:create linklist 2:insert 3:..and so on
enter 1 for creating linklist
if flag==0 then printing create linklist
—————————-
revision 1.1
date: 2014/02/22 17:25:42;  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>