RCS file: header.h,v
Working file: header.h
head: 1.10
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 10; selected revisions: 10
description:
created a header file including all predefined header files.
learnt that header file “string.h” is required for using memset function
learnt that memset retutrns a void pointer to the memory block which we hav set with a constant character.
—————————-
revision 1.10
date: 2014/02/22 10:38:23; author: root; state: Exp; lines: +8 -10
made changes in the body of function createnode.
—————————-
revision 1.9
date: 2014/02/22 10:27:31; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.8
date: 2014/02/22 10:18:52; author: root; state: Exp; lines: +9 -3
created oother node than the starting node
declared a new pointer in the body of function createnode which will always point to new node.
this new pointer is given the address stored in “next” pointer of the start node.
—————————-
revision 1.7
date: 2014/02/22 09:54:32; author: root; state: Exp; lines: +1 -1
syntax error removed
—————————-
revision 1.6
date: 2014/02/22 09:52:30; author: root; state: Exp; lines: +2 -2
made changes in prototype and definition of the function createnode
—————————-
revision 1.5
date: 2014/02/22 09:43:32; author: root; state: Exp; lines: +3 -3
again changed the parameters passed in the body of the function createnode
learnt we can find out the address of a pointer simply by using &pointer
—————————-
revision 1.4
date: 2014/02/22 09:17:47; author: root; state: Exp; lines: +6 -6
mentioned the type of arguments in the prototype of createnode
passed the arguments using pass by refference
changed the function body
—————————-
revision 1.3
date: 2014/02/22 08:49:00; author: root; state: Exp; lines: +9 -0
created a function for creating start node
declared the prototype of createnode
defined the body of createnode
returned a value flag = 1 if the node is created succesfully
catching of the returned vallue in the main function is necessary
—————————-
revision 1.2
date: 2014/02/22 08:09:18; author: root; state: Exp; lines: +11 -0
declared a structured data type linked.
members of struct link are
int info
a pointer next of structured type linked
—————————-
revision 1.1
date: 2014/02/22 08:04:00; author: root; state: Exp;
Initial revision
=============================================================================
#include
{
struct linked *start;int flag=0,p;
p=createnode(&start,&flag);
if(p)
{ printf(“starting node created successfully\n”);
printf(“%p\n”,start);
printf(“%d”,sizeof(struct linked));
}
}
RCS file: linkedlist.c,v
Working file: linkedlist.c
head: 1.2
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
created a pointer of struct linked type
allocated memory to the pointer using malloc
checked if the start pointer is not null
the size of the struct linked printed on the console
the address of the starting node printed on the console
—————————-
revision 1.2
date: 2014/02/22 09:56:31; author: root; state: Exp; lines: +7 -3
first node of linkedlist created using function createnode successfully
pass by referrence method use to pass the addresses of the arguments to the createnode function by main function
—————————-
revision 1.1
date: 2014/02/22 08:21:38; author: root; state: Exp;
Initial revision
=============================================================================