EmbLogic's Blog

Give the memory and display the data using malloc and realloc function in MDC

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
	root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;	selected revisions: 1
description:
create a seperate header.h file to store header
file indiviually
access this header file in projectmdc.c file
----------------------------
revision 1.1	locked by: root;
date: 2015/02/04 11:15:02;  author: root; 
state: Exp;
Initial revision
=============================================================================

RCS file: projectmdc.c,v
Working file: projectmdc.c
head: 1.1
branch:
locks: strict
	root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;	selected revisions: 1
description:
Introduce header.h file
create datain_file text file and open the
content through file decriptor
read the content from datain_file text file
Use the argc to count the no. of arguements
And argv to store the string in argv array
----------------------------
revision 1.1	locked by: root;
date: 2015/02/04 11:00:43;  author: root; 
state: Exp;
Initial revision
=============================================================================

RCS file: projectmdc.c,v
Working file: projectmdc.c
head: 1.7
branch:
locks: strict
	root: 1.7
access list:
symbolic names:
keyword substitution: kv
total revisions: 7;	selected revisions: 7
description:
Introduce header.h file
create datain_file text file and open the
content through file decriptor
read the content from datain_file text file
Use the argc to count the no. of arguements
And argv to store the string in argv array
----------------------------
revision 1.7	locked by: root;
date: 2015/02/05 11:56:06;  author: root; 
state: Exp;  lines: +4 -4
modified the program just change the value of
charc
change the malloc arguement
----------------------------
revision 1.6
date: 2015/02/05 11:32:07;  author: root; 
state: Exp;  lines: +19 -18
Introduce malloc and realloc function
read character one by one and realloc the memory
successfully
introduce master array and print string on
display
----------------------------
revision 1.5
date: 2015/02/05 10:47:13;  author: root; 
state: Exp;  lines: +1 -1
change the format specifier in argv1
----------------------------
revision 1.4
date: 2015/02/05 10:46:12;  author: root; 
state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.3
date: 2015/02/05 10:43:10;  author: root; 
state: Exp;  lines: +25 -8
*** empty log message ***
----------------------------
revision 1.2
date: 2015/02/05 08:25:39;  author: root; 
state: Exp;  lines: +7 -2
just checking the arguement
----------------------------
revision 1.1
date: 2015/02/04 11:00:43;  author: root; 
state: Exp;
Initial revision
=============================================================================

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
	root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;	selected revisions: 1
description:
create a seperate header.h file to store header
file indiviually
access this header file in projectmdc.c file
----------------------------
revision 1.1	locked by: root;
date: 2015/02/04 11:15:02;  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>