EmbLogic's Blog

compress the file

RCS file: mdc.c,v
Working file: mdc.c
head: 1.9
branch:
locks: strict
root: 1.9
access list:
symbolic names:
keyword substitution: kv
total revisions: 9; selected revisions: 9
description:
file compressing prg
—————————-
revision 1.9 locked by: root;
date: 2015/02/13 07:28:40; author: root; state: Exp; lines: +2 -2
readinn another varible and compare it to the master arry and put into the varible
then throw sprintf we convert into char
fist we left shift it the right shift
and both two byt varible captured into a third vrible
print the third varible
—————————-
revision 1.8
date: 2015/02/13 07:25:32; author: root; state: Exp; lines: +83 -29
here we read the file again and take while loop
after this we compare the master array variable to the file content
after find take it in a varible and convert into character
after it shifts leftside
—————————-
revision 1.7
date: 2015/02/12 00:48:40; author: root; state: Exp; lines: +2 -2
hare we find the code length
and comparing the code length
—————————-
revision 1.6
date: 2015/02/12 00:46:01; author: root; state: Exp; lines: +5 -5
if the character is not match then realloc the the size of master array
and the character is stored in the master array
and increase the ndc
and also increase the varible comparing wid i
—————————-
revision 1.5
date: 2015/02/12 00:43:19; author: root; state: Exp; lines: +5 -2
here we use the whilr loop for count the number of character
and also use to match the distungih char to the master aarry
if it macht then the loop is going outside
—————————-
revision 1.4
date: 2015/02/12 00:41:17; author: root; state: Exp; lines: +2 -2
hera we read the file and each character of file is assign to master array
—————————-
revision 1.3
date: 2015/02/12 00:38:47; author: root; state: Exp; lines: +2 -2
declaring main fumction and also declaring a char varinbland declaring a master arry ,,and open the file wid file descrptor fd
—————————-
revision 1.2
date: 2015/02/12 00:35:50; author: root; state: Exp; lines: +13 -5
here we include the required header file and declare the variable flobally
—————————-
revision 1.1
date: 2015/02/06 05:25:39; 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>