EmbLogic's Blog

Program that inserts a node at the Nth position in a single linked list in C language.

RCS file: insert_at_n_pos.c,v
Working file: insert_at_n_pos.c
head: 1.12
branch:
locks: strict
root: 1.12
access list:
symbolic names:
keyword substitution: kv
total revisions: 12;    selected revisions: 12
description:
Developing a general code that inserts a node at the N-position specified by the user in a single linked list.
—————————-
revision 1.12    locked by: root;
date: 2014/02/15 23:56:48;  author: root;  state: Exp;  lines: +19 -2
Status:The node is getting inserted at the correct poistion as desired.
Program is working absolutely fine.
—————————-
revision 1.11
date: 2014/02/15 23:35:44;  author: root;  state: Exp;  lines: +4 -4
Prototype of the insert_at_n_position() function is changed.
—————————-
revision 1.10
date: 2014/02/15 23:33:19;  author: root;  state: Exp;  lines: +9 -1
Prototype of the insert_at_n_position() is declared.
Defining the body of the insert_at_n_position().
—————————-
revision 1.9
date: 2014/02/15 23:29:22;  author: root;  state: Exp;  lines: +1 -1
\n(New line) character is added inside display_nodes function.
—————————-
revision 1.8
date: 2014/02/15 04:01:22;  author: root;  state: Exp;  lines: +13 -1
A logical error ocurred because of which the linked list cannot be displayed.
Bug fixed.
—————————-
revision 1.7
date: 2014/02/15 03:47:07;  author: root;  state: Exp;  lines: +12 -0
Function to display the nodes in the linked list is implemented.
—————————-
revision 1.6
date: 2014/02/15 03:41:57;  author: root;  state: Exp;  lines: +20 -0
Function to insert a node at the end of the linked list is implemented.
The prototype of this function is also declared.
—————————-
revision 1.5
date: 2014/02/15 03:37:33;  author: root;  state: Exp;  lines: +9 -1
Body of the create_list() function is defined.
Checking….
—————————-
revision 1.4
date: 2014/02/15 03:33:39;  author: root;  state: Exp;  lines: +15 -1
Prototype of the create_list() is declared.
Inside the main() function it is called to create a linked list.
—————————-
revision 1.3
date: 2014/02/15 03:27:55;  author: root;  state: Exp;  lines: +25 -0
exit() function is included to end the program.
Header file:<stdlib.h> is included to support the exit() function.
—————————-
revision 1.2
date: 2014/02/15 03:23:15;  author: root;  state: Exp;  lines: +10 -0
A layout is prepared for the user asking him/her to perform a specific operation.
—————————-
revision 1.1
date: 2014/02/15 03:16:31;  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>