EmbLogic's Blog

4-bit compression completed

RCS file: mdc.c,v
Working file: mdc.c
head: 1.45
branch:
locks: strict
root: 1.45
access list:
symbolic names:
keyword substitution: kv
total revisions: 45; selected revisions: 45
description:
create a base code for multiple data compression and encryption using iterative technique
—————————-
revision 1.45 locked by: root;
date: 2014/10/17 07:10:11; author: root; state: Exp; lines: +21 -7
define compression function for 4 bit code length
—————————-
revision 1.44
date: 2014/10/17 06:02:25; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.43
date: 2014/10/16 20:45:40; author: root; state: Exp; lines: +3 -3
write a compression code for code length 4 to check if data compressed successfully
if it creates a compressed file of the size half of the original file
—————————-
revision 1.42
date: 2014/10/16 20:32:45; author: root; state: Exp; lines: +24 -3
write a compression function for 4 bit code length
—————————-
revision 1.41
date: 2014/10/16 20:18:51; author: root; state: Exp; lines: +9 -11
there was some error in the code
remove that error
index form the master array read successfully
—————————-
revision 1.40
date: 2014/10/16 20:05:47; author: root; state: Exp; lines: +4 -2
*** empty log message ***
—————————-
revision 1.39
date: 2014/10/16 20:01:54; author: root; state: Exp; lines: +10 -4
write break condition in compress4() function for EOL character
—————————-
revision 1.38
date: 2014/10/16 19:42:37; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.37
date: 2014/10/16 19:33:52; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.36
date: 2014/10/16 19:28:07; author: root; state: Exp; lines: +45 -26
gave a small defination for function compress4()
gave a defination for function search_index to search for the character in file for its index in master array
call search_index() from compress4() and print the value of index to check if it working properly
—————————-
revision 1.35
date: 2014/10/16 13:20:26; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.34
date: 2014/10/16 13:15:03; author: root; state: Exp; lines: +36 -1
define compress_data() function
write code to check if enetered in compress_data function
—————————-
revision 1.33
date: 2014/10/16 10:30:45; author: root; state: Exp; lines: +39 -1
define a function find_code_length()
this function is used to find the code length used to compress the data
—————————-
revision 1.32
date: 2014/10/15 07:35:41; author: root; state: Exp; lines: +0 -4
remove prototypes from functions from c
remove prototypes of functions from c file
—————————-
revision 1.31
date: 2014/10/15 07:06:45; author: root; state: Exp; lines: +22 -21
*** empty log message ***
—————————-
revision 1.30
date: 2014/10/15 07:01:34; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.29
date: 2014/10/15 06:59:02; author: root; state: Exp; lines: +1 -1
remove error in create_master_array_function
declare integer i as a static variable
—————————-
revision 1.28
date: 2014/10/15 06:56:20; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.27
date: 2014/10/15 06:55:25; author: root; state: Exp; lines: +4 -4
*** empty log message ***
—————————-
revision 1.26
date: 2014/10/15 06:48:48; author: root; state: Exp; lines: +23 -13
gave prototype for create_master_array
define function create_master_array
make a call to create_master_array from function read_file
—————————-
revision 1.25
date: 2014/10/15 06:33:54; author: root; state: Exp; lines: +3 -3
use command line arguments to send file name
—————————-
revision 1.24
date: 2014/10/15 06:13:52; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.23
date: 2014/10/15 05:57:47; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.22
date: 2014/10/14 19:58:45; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.21
date: 2014/10/14 19:56:53; author: root; state: Exp; lines: +10 -4
use command line arguments to give the file name instead of hard coded it
—————————-
revision 1.20
date: 2014/10/14 19:21:24; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.19
date: 2014/10/14 19:14:36; author: root; state: Exp; lines: +61 -42
provide proper indentation to the code
use perror call to report the error
—————————-
revision 1.18
date: 2014/10/14 19:01:02; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.17
date: 2014/10/14 18:59:01; author: root; state: Exp; lines: +1 -1
did some changes in function check_unique to get the desired result
—————————-
revision 1.16
date: 2014/10/14 18:47:58; author: root; state: Exp; lines: +1 -1
prevent LF(\n) to save in master array
—————————-
revision 1.15
date: 2014/10/14 18:44:44; author: root; state: Exp; lines: +1 -1
remove error
—————————-
revision 1.14
date: 2014/10/14 18:43:49; author: root; state: Exp; lines: +7 -4
print total number of characters in master array
—————————-
revision 1.13
date: 2014/10/14 18:36:01; author: root; state: Exp; lines: +2 -0
allocate memory to master_array using malloc
—————————-
revision 1.12
date: 2014/10/14 18:34:14; author: root; state: Exp; lines: +2 -2
remove error
—————————-
revision 1.11
date: 2014/10/14 18:28:48; author: root; state: Exp; lines: +29 -1
gave prototype for check_unique function
check_unique function check the master array
if read character found in the array it returns 0 to the calling function
if not found returns 1
a call to the function check_unique is made in read_file function
—————————-
revision 1.10
date: 2014/10/14 17:55:17; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.9
date: 2014/10/14 17:50:04; author: root; state: Exp; lines: +1 -0
made a call to read_file function
—————————-
revision 1.8
date: 2014/10/14 17:46:35; author: root; state: Exp; lines: +16 -1
gave a prototype for read_file function
define function read
read_file
—————————-
revision 1.7
date: 2014/10/14 17:41:33; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.6
date: 2014/10/14 17:39:50; author: root; state: Exp; lines: +7 -3
make a call to open_file function for opening a file
—————————-
revision 1.5
date: 2014/10/14 17:35:54; author: root; state: Exp; lines: +3 -1
did some changes in open_file function
—————————-
revision 1.4
date: 2014/10/14 17:33:51; author: root; state: Exp; lines: +1 -1
remove error in open_file function
—————————-
revision 1.3
date: 2014/10/14 17:26:48; author: root; state: Exp; lines: +8 -0
gave the prototype for open_file function.
open_file fuction is used to open a file and return a file descriptor to the calling function
—————————-
revision 1.2
date: 2014/10/14 17:14:16; author: root; state: Exp; lines: +1 -1
use double quotes instead of triangular braces to include header.h
—————————-
revision 1.1
date: 2014/10/14 17:04:00; 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>