RCS file: Compression3.c,v
Working file: Compression3.c
head: 1.6
branch:
locks: strict
abhi: 1.6
access list:
symbolic names:
keyword substitution: kv
total revisions: 6; selected revisions: 6
description:
----------------------------
revision 1.6 locked by: abhi;
date: 2017/07/13 17:55:08; author: abhi;
state: Exp; lines: +1 -0
se
----------------------------
revision 1.5
date: 2017/07/13 17:10:56; author: abhi;
state: Exp; lines: +9 -0
addded print statment to print index value
write in ef
----------------------------
revision 1.4
date: 2017/07/13 17:07:04; author: abhi;
state: Exp; lines: +10 -1
close the filediscriptor
added print statment
----------------------------
revision 1.3
date: 2017/07/13 16:58:51; author: abhi;
state: Exp; lines: +149 -1
open 2 files cf and ef and store the data of the
source file in cf in bits form
basically shift and or operations are performed
and done for 8 times
one while loop writes 3 times in a particular
byte
----------------------------
pre.cjk { font-family: "WenQuanYi Zen Hei Sharp",monospace; }p { margin-bottom: 0.1in; line-height: 120%; }
RCS file: Decompression3.c,v
Working file: Decompression3.c
head: 1.5
branch:
locks: strict
abhi: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5; selected revisions: 5
description:
Contain print statment only
----------------------------
revision 1.5 locked by: abhi;
date: 2017/07/13 17:57:14; author: abhi;
state: Exp; lines: +2 -2
se
----------------------------
revision 1.4
date: 2017/07/13 17:55:12; author: abhi;
state: Exp; lines: +5 -1
added if statment to check 0x07
----------------------------
revision 1.3
date: 2017/07/13 17:44:05; author: abhi;
state: Exp; lines: +8 -8
added \n to printf statment
----------------------------
revision 1.2
date: 2017/07/13 17:38:52; author: abhi;
state: Exp; lines: +80 -2
this function will decompress the 3 bit code
openfile fuction is called to open df in write
mode
while loop is added in which 8 values will be
write to dfd
RCS file: declarations.h,v
Working file: declarations.h
head: 1.13
branch:
locks: strict
root: 1.13
access list:
symbolic names:
keyword substitution: kv
total revisions: 13; selected revisions: 13
description:
----------------------------
revision 1.13 locked by: root;
date: 2017/07/13 05:50:25; author: root; state: Exp; lines: +6 -0
declared decompress2-7
----------------------------
revision 1.12
date: 2017/07/13 04:53:44; author: root; state: Exp; lines: +1 -1
changed return type of displayMenu from char to int
----------------------------
revision 1.11
date: 2017/07/13 04:13:12; author: root; state: Exp; lines: +1 -1
changed return type of displayMenu from int to char
----------------------------
revision 1.10
date: 2017/07/06 16:35:15; author: root; state: Exp; lines: +1 -2
merged openfilew and openfiler in openfile
----------------------------
revision 1.9
date: 2017/07/06 16:02:02; author: root; state: Exp; lines: +0 -1
removed byte datatype
----------------------------
revision 1.8
date: 2017/07/06 05:06:21; author: root; state: Exp; lines: +1 -0
added openfilew function
----------------------------
revision 1.7
date: 2017/07/06 04:48:18; author: root; state: Exp; lines: +1 -0
declared unsigned chare as byte
----------------------------
revision 1.6
date: 2017/07/06 04:37:52; author: root; state: Exp; lines: +1 -0
added findIndex function
----------------------------
revision 1.5
date: 2017/07/04 04:45:34; author: root; state: Exp; lines: +7 -0
declared codeLength and compress 2-7
----------------------------
revision 1.4
date: 2017/07/04 04:22:32; author: root; state: Exp; lines: +1 -1
se
----------------------------
revision 1.3
date: 2017/07/04 04:17:43; author: root; state: Exp; lines: +1 -0
added createMasterArray function
----------------------------
revision 1.2
date: 2017/07/04 01:54:04; author: root; state: Exp; lines: +4 -0
added function declaration compression openfiler and displayMenu
----------------------------
revision 1.1
date: 2017/07/03 04:33:10; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: header.h,v
Working file: header.h
head: 1.5
branch:
locks: strict
root: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5; selected revisions: 5
description:
header put into rcs
----------------------------
revision 1.5 locked by: root;
date: 2017/07/04 04:27:26; author: root; state: Exp; lines: +1 -1
se
----------------------------
revision 1.4
date: 2017/07/04 04:26:32; author: root; state: Exp; lines: +1 -0
include string.h
----------------------------
revision 1.3
date: 2017/07/03 06:07:10; author: root; state: Exp; lines: +1 -0
included fcntl.h
----------------------------
revision 1.2
date: 2017/07/03 04:33:34; author: root; state: Exp; lines: +2 -0
added stdio and stdlib
----------------------------
revision 1.1
date: 2017/07/02 06:27:50; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: codeLength.c,v
Working file: codeLength.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
function to find codelength corresponding to unique charaters in master array
----------------------------
revision 1.1 locked by: root;
date: 2017/07/04 04:45:54; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: compress2.c,v
Working file: compress2.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
compress if 2 codelength(cl)
----------------------------
revision 1.1 locked by: root;
date: 2017/07/04 04:46:17; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: compress3.c,v
Working file: compress3.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
compress cl 3
----------------------------
revision 1.2 locked by: root;
date: 2017/07/04 04:51:12; author: root; state: Exp; lines: +1 -1
se
----------------------------
revision 1.1
date: 2017/07/04 04:46:41; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: compress4.c,v
Working file: compress4.c
head: 1.30
branch:
locks: strict
root: 1.30
access list:
symbolic names:
keyword substitution: kv
total revisions: 30; selected revisions: 30
description:
compress 4 cl
----------------------------
revision 1.30 locked by: root;
date: 2017/07/14 03:09:51; author: root; state: Exp; lines: +1 -1
when even no of characters then we have to write 0xF0 not 0x0F for end of file
----------------------------
revision 1.29
date: 2017/07/14 02:56:43; author: root; state: Exp; lines: +4 -0
written 1111 at end of file regardless of whether the characters were even or odd
----------------------------
revision 1.28
date: 2017/07/13 06:48:42; author: root; state: Exp; lines: +0 -1
compress4 is writing 1111 perfectly
----------------------------
revision 1.27
date: 2017/07/13 06:36:38; author: root; state: Exp; lines: +1 -0
when odd no of characters last character not coming 1111
----------------------------
revision 1.26
date: 2017/07/13 04:13:38; author: root; state: Exp; lines: +5 -4
function pointer for openfile and findIndex
----------------------------
revision 1.25
date: 2017/07/10 16:02:58; author: root; state: Exp; lines: +8 -11
solved the problem
when we do left shift or right shift of char it is first converted to int and then shifted then answer found out
in this when we were doing shift for second character read then char which had leftmost bit 1 were converted to int after left shift
and they had negative values which were converted to int and then when we do right shift then shift was done of negative values so answer wrong
e.g 0000 1010 in char first converted to int and left shift so int conv 0000 0000 0000 1010 left shift 0000 0000 1010 0000
now right shift had to be done so char value was 1010 0000 which was converted to int as it is (-96) so 1111 1111 1010 0000
then right shift 0000 1111 1111 1010 now this value was in char differet from what expected so we used unsigned char just after reading char
----------------------------
revision 1.24
date: 2017/07/10 15:38:03; author: root; state: Exp; lines: +1 -0
prev prob
----------------------------
revision 1.23
date: 2017/07/10 15:22:58; author: root; state: Exp; lines: +2 -1
prev prob
----------------------------
revision 1.22
date: 2017/07/10 15:20:30; author: root; state: Exp; lines: +1 -0
solving prev prob
----------------------------
revision 1.21
date: 2017/07/10 15:16:36; author: root; state: Exp; lines: +1 -0
solving prev problem
----------------------------
revision 1.20
date: 2017/07/10 15:01:36; author: root; state: Exp; lines: +1 -2
printing byte written on file
----------------------------
revision 1.19
date: 2017/07/10 14:15:29; author: root; state: Exp; lines: +2 -4
in sprintf changed template from %d to %c
%d was storing in char the number like 0 was stored as 0 character with ascii 48 but we needed 0 in place of 48
%c first converted int to char and 0 was stored as ascii 0
----------------------------
revision 1.18
date: 2017/07/10 11:24:56; author: root; state: Exp; lines: +4 -2
prev prob
----------------------------
revision 1.17
date: 2017/07/10 11:17:00; author: root; state: Exp; lines: +2 -2
printing char after sprintf typcasting int
----------------------------
revision 1.16
date: 2017/07/10 11:13:15; author: root; state: Exp; lines: +2 -4
printing char value after sprintf in integer form
----------------------------
revision 1.15
date: 2017/07/10 11:08:53; author: root; state: Exp; lines: +4 -3
solving compression prob
----------------------------
revision 1.14
date: 2017/07/10 10:50:03; author: root; state: Exp; lines: +1 -2
made ch from char to unsigned char
----------------------------
revision 1.13
date: 2017/07/10 10:43:03; author: root; state: Exp; lines: +2 -1
checking index after sprintf
----------------------------
revision 1.12
date: 2017/07/10 10:40:40; author: root; state: Exp; lines: +2 -1
solving above prob verifying index from getIndex
----------------------------
revision 1.11
date: 2017/07/10 10:21:21; author: root; state: Exp; lines: +2 -2
solving prev prob
----------------------------
revision 1.10
date: 2017/07/10 10:14:53; author: root; state: Exp; lines: +2 -0
error in writing file p not coming in plan
----------------------------
revision 1.9
date: 2017/07/10 09:29:06; author: root; state: Exp; lines: +2 -1
declared b as unsigned char
----------------------------
revision 1.8
date: 2017/07/06 16:35:34; author: root; state: Exp; lines: +7 -2
used openfile
----------------------------
revision 1.7
date: 2017/07/06 16:02:17; author: root; state: Exp; lines: +1 -2
used char data type for byte in place of unsigned char
----------------------------
revision 1.6
date: 2017/07/06 05:08:50; author: root; state: Exp; lines: +1 -1
se
----------------------------
revision 1.5
date: 2017/07/06 05:06:34; author: root; state: Exp; lines: +10 -4
created encrypted and compressed file through openfilew
and written data to compressed file
----------------------------
revision 1.4
date: 2017/07/06 04:48:35; author: root; state: Exp; lines: +1 -0
used lseek
----------------------------
revision 1.3
date: 2017/07/06 04:38:14; author: root; state: Exp; lines: +24 -0
finding index of read character in master array
----------------------------
revision 1.2
date: 2017/07/04 04:51:16; author: root; state: Exp; lines: +1 -1
se
----------------------------
revision 1.1
date: 2017/07/04 04:46:48; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: compress5.c,v
Working file: compress5.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
compress 5 cl
----------------------------
revision 1.2 locked by: root;
date: 2017/07/04 04:51:18; author: root; state: Exp; lines: +1 -1
se
----------------------------
revision 1.1
date: 2017/07/04 04:46:53; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: compress6.c,v
Working file: compress6.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
compress 6 cl
----------------------------
revision 1.2 locked by: root;
date: 2017/07/04 04:51:20; author: root; state: Exp; lines: +1 -1
se
----------------------------
revision 1.1
date: 2017/07/04 04:46:59; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: compress7.c,v
Working file: compress7.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
compress 7 cl
----------------------------
revision 1.2 locked by: root;
date: 2017/07/04 04:51:22; author: root; state: Exp; lines: +1 -1
se
----------------------------
revision 1.1
date: 2017/07/04 04:47:03; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: compression.c,v
Working file: compression.c
head: 1.11
branch:
locks: strict
root: 1.11
access list:
symbolic names:
keyword substitution: kv
total revisions: 11; selected revisions: 11
description:
seperated compression function in this file
----------------------------
revision 1.11 locked by: root;
date: 2017/07/13 05:50:36; author: root; state: Exp; lines: +1 -1
removed char c declaration unnecssary variable
----------------------------
revision 1.10
date: 2017/07/13 04:02:52; author: root; state: Exp; lines: +2 -3
function pointer for openfile
----------------------------
revision 1.9
date: 2017/07/13 03:22:22; author: root; state: Exp; lines: +5 -24
function pointer for createMasterArray and codeLength
----------------------------
revision 1.8
date: 2017/07/13 03:14:08; author: root; state: Exp; lines: +4 -4
function pointer array for compress2-7
----------------------------
revision 1.7
date: 2017/07/13 03:08:36; author: root; state: Exp; lines: +2 -1
function pointer for compress4
----------------------------
revision 1.6
date: 2017/07/13 03:06:54; author: root; state: Exp; lines: +2 -1
used function pointer for compress2 function
----------------------------
revision 1.5
date: 2017/07/06 16:36:08; author: root; state: Exp; lines: +1 -1
used openfile
----------------------------
revision 1.4
date: 2017/07/04 04:47:09; author: root; state: Exp; lines: +25 -2
calling compress 2-7 function according to code length
----------------------------
revision 1.3
date: 2017/07/04 04:26:41; author: root; state: Exp; lines: +3 -2
found no of distinct characters
----------------------------
revision 1.2
date: 2017/07/04 04:18:00; author: root; state: Exp; lines: +2 -21
seperated create master array part
----------------------------
revision 1.1
date: 2017/07/04 01:54:42; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: createMasterArray.c,v
Working file: createMasterArray.c
head: 1.4
branch:
locks: strict
root: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4; selected revisions: 4
description:
moved createMasterArray function to this file
----------------------------
revision 1.4 locked by: root;
date: 2017/07/06 16:55:44; author: root; state: Exp; lines: +2 -1
also checked if read returns 0 so that it can be used for getting encryption key
----------------------------
revision 1.3
date: 2017/07/06 16:36:18; author: root; state: Exp; lines: +10 -0
*** empty log message ***
----------------------------
revision 1.2
date: 2017/07/06 16:02:42; author: root; state: Exp; lines: +6 -2
used realloc in place of malloc
And used infinite while loop in place of while loop which checked for \n
because last character was to be reserved for \n
and using while loop which checked for \n increase the character count by 1
----------------------------
revision 1.1
date: 2017/07/04 04:18:23; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: decompress2.c,v
Working file: decompress2.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
function to decompress file if cl2
----------------------------
revision 1.1 locked by: root;
date: 2017/07/13 05:51:02; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: decompress3.c,v
Working file: decompress3.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
decompress if cl3
----------------------------
revision 1.1 locked by: root;
date: 2017/07/13 05:51:15; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: decompress4.c,v
Working file: decompress4.c
head: 1.7
branch:
locks: strict
root: 1.7
access list:
symbolic names:
keyword substitution: kv
total revisions: 7; selected revisions: 7
description:
decompress if cl4
----------------------------
revision 1.7 locked by: root;
date: 2017/07/14 02:57:44; author: root; state: Exp; lines: +2 -3
problem of not identifying 1111 rectified
checking ch =1111 after it had value corr to index in en key so that was wrong
----------------------------
revision 1.6
date: 2017/07/14 02:49:34; author: root; state: Exp; lines: +2 -3
same prob
----------------------------
revision 1.5
date: 2017/07/14 02:09:29; author: root; state: Exp; lines: +1 -1
same prob
----------------------------
revision 1.4
date: 2017/07/14 02:02:48; author: root; state: Exp; lines: +1 -0
printing ch2 o solve prev prob
----------------------------
revision 1.3
date: 2017/07/13 06:49:01; author: root; state: Exp; lines: +1 -1
checking 1111 reading
----------------------------
revision 1.2
date: 2017/07/13 06:23:35; author: root; state: Exp; lines: +3 -0
when last char 1111 then output not correct
----------------------------
revision 1.1
date: 2017/07/13 05:51:21; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: decompress5.c,v
Working file: decompress5.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
decompress if cl5
----------------------------
revision 1.1 locked by: root;
date: 2017/07/13 05:51:28; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: decompress6.c,v
Working file: decompress6.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
decompress if cl6
----------------------------
revision 1.1 locked by: root;
date: 2017/07/13 05:51:35; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: decompress7.c,v
Working file: decompress7.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
decompress if cl7
----------------------------
revision 1.1 locked by: root;
date: 2017/07/13 05:51:45; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: decompression.c,v
Working file: decompression.c
head: 1.29
branch:
locks: strict
root: 1.29
access list:
symbolic names:
keyword substitution: kv
total revisions: 29; selected revisions: 29
description:
created decompression fn
----------------------------
revision 1.29 locked by: root;
date: 2017/07/13 05:51:51; author: root; state: Exp; lines: +10 -30
declared functions for decompress2-7 and called using function pointers
----------------------------
revision 1.28
date: 2017/07/10 16:40:49; author: root; state: Exp; lines: +2 -1
if last character is 1111 then break
----------------------------
revision 1.27
date: 2017/07/10 16:30:59; author: root; state: Exp; lines: +1 -1
writing to decompressed file
----------------------------
revision 1.26
date: 2017/07/10 16:28:41; author: root; state: Exp; lines: +1 -0
writing to decompressed file
----------------------------
revision 1.25
date: 2017/07/10 16:17:11; author: root; state: Exp; lines: +4 -11
storing data in decompressed file
----------------------------
revision 1.24
date: 2017/07/10 14:23:33; author: root; state: Exp; lines: +2 -2
testing output
----------------------------
revision 1.23
date: 2017/07/10 09:36:11; author: root; state: Exp; lines: +1 -2
declared unsigned char ch1 and ch2
----------------------------
revision 1.22
date: 2017/07/10 09:34:53; author: root; state: Exp; lines: +2 -1
declared ch as unsigned char
----------------------------
revision 1.21
date: 2017/07/10 09:20:15; author: root; state: Exp; lines: +2 -1
output not as desired
printing integer value of numbers
----------------------------
revision 1.20
date: 2017/07/10 08:52:55; author: root; state: Exp; lines: +4 -4
changed converting to int from char
earlier used atoi now doing type casting
atoi wrong because atoi will convert character to int.
but it will take char and convert to its ascii code
but here we required that value of character in int to be stored in variable
----------------------------
revision 1.19
date: 2017/07/10 05:29:46; author: root; state: Exp; lines: +2 -2
same
----------------------------
revision 1.18
date: 2017/07/10 05:28:03; author: root; state: Exp; lines: +4 -4
same
----------------------------
revision 1.17
date: 2017/07/10 05:26:28; author: root; state: Exp; lines: +1 -0
same
----------------------------
revision 1.16
date: 2017/07/10 05:24:45; author: root; state: Exp; lines: +2 -1
solving same prob
----------------------------
revision 1.15
date: 2017/07/10 05:23:33; author: root; state: Exp; lines: +4 -4
solving same prob
----------------------------
revision 1.14
date: 2017/07/10 05:12:37; author: root; state: Exp; lines: +2 -1
solving same prob
----------------------------
revision 1.13
date: 2017/07/10 05:09:57; author: root; state: Exp; lines: +3 -3
solving same prob
----------------------------
revision 1.12
date: 2017/07/10 05:08:44; author: root; state: Exp; lines: +2 -1
same prob
----------------------------
revision 1.11
date: 2017/07/10 05:06:38; author: root; state: Exp; lines: +2 -2
solving all g problem
----------------------------
revision 1.10
date: 2017/07/10 05:00:18; author: root; state: Exp; lines: +2 -1
getting all g's after decompression
----------------------------
revision 1.9
date: 2017/07/10 04:57:25; author: root; state: Exp; lines: +2 -2
not getting the characters in decompressed file
----------------------------
revision 1.8
date: 2017/07/10 04:54:51; author: root; state: Exp; lines: +4 -3
getting only gggg
----------------------------
revision 1.7
date: 2017/07/10 04:48:36; author: root; state: Exp; lines: +3 -2
storing gggggg in decomp file
----------------------------
revision 1.6
date: 2017/07/10 04:40:54; author: root; state: Exp; lines: +24 -1
testing decompression of 4 bits
----------------------------
revision 1.5
date: 2017/07/06 17:01:16; author: root; state: Exp; lines: +1 -1
ouput formatted
----------------------------
revision 1.4
date: 2017/07/06 16:59:50; author: root; state: Exp; lines: +3 -1
written function name at begin and end
----------------------------
revision 1.3
date: 2017/07/06 16:57:56; author: root; state: Exp; lines: +3 -1
se
----------------------------
revision 1.2
date: 2017/07/06 16:56:28; author: root; state: Exp; lines: +8 -0
getting encryption key
----------------------------
revision 1.1
date: 2017/07/04 04:18:47; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: displayMenu.c,v
Working file: displayMenu.c
head: 1.10
branch:
locks: strict
root: 1.10
access list:
symbolic names:
keyword substitution: kv
total revisions: 10; selected revisions: 10
description:
seperated displayMenu in this file
----------------------------
revision 1.10 locked by: root;
date: 2017/07/13 04:54:08; author: root; state: Exp; lines: +7 -12
the problem was that when we were inputting character from user first time it took a character and next time in loop a new line was left when we input the prev character
so newline was taken as character in next iteration that's why menu priinting twice
to solve this prob space%c was used instead of %c in scanf because space consumes all the whitespace characters
----------------------------
revision 1.9
date: 2017/07/13 04:45:35; author: root; state: Exp; lines: +3 -3
same prob
----------------------------
revision 1.8
date: 2017/07/13 04:44:33; author: root; state: Exp; lines: +6 -6
same prob
----------------------------
revision 1.7
date: 2017/07/13 04:41:25; author: root; state: Exp; lines: +1 -1
same prob
----------------------------
revision 1.6
date: 2017/07/13 04:40:41; author: root; state: Exp; lines: +1 -0
same prob
----------------------------
revision 1.5
date: 2017/07/13 04:38:46; author: root; state: Exp; lines: +4 -0
menu displayed twice
----------------------------
revision 1.4
date: 2017/07/13 04:28:03; author: root; state: Exp; lines: +5 -5
se
----------------------------
revision 1.3
date: 2017/07/13 04:23:11; author: root; state: Exp; lines: +16 -0
put calling of comp and decomp in this and function pointer for compression and decompression
----------------------------
revision 1.2
date: 2017/07/13 04:13:59; author: root; state: Exp; lines: +6 -6
entering c,d,e for compression, decompression and eexit instead of 1,2,0
----------------------------
revision 1.1
date: 2017/07/04 01:54:58; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: findIndex.c,v
Working file: findIndex.c
head: 1.5
branch:
locks: strict
root: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5; selected revisions: 5
description:
function to find index of a character in master array
----------------------------
revision 1.5 locked by: root;
date: 2017/07/13 05:06:41; author: root; state: Exp; lines: +2 -2
removed begin and end statement of this function
----------------------------
revision 1.4
date: 2017/07/10 10:36:02; author: root; state: Exp; lines: +0 -4
got the problem if index above 10 then that character not getting
----------------------------
revision 1.3
date: 2017/07/10 10:31:00; author: root; state: Exp; lines: +3 -0
checking for error compression not done properly
----------------------------
revision 1.2
date: 2017/07/10 10:23:26; author: root; state: Exp; lines: +1 -0
same prob
----------------------------
revision 1.1
date: 2017/07/06 04:39:12; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: mdc.c,v
Working file: mdc.c
head: 1.33
branch:
locks: strict
root: 1.33
access list:
symbolic names:
keyword substitution: kv
total revisions: 33; selected revisions: 33
description:
----------------------------
revision 1.33 locked by: root;
date: 2017/07/13 05:02:25; author: root; state: Exp; lines: +2 -18
displayMenu called using function pointer
----------------------------
revision 1.32
date: 2017/07/13 04:32:15; author: root; state: Exp; lines: +1 -1
se
----------------------------
revision 1.31
date: 2017/07/13 04:23:41; author: root; state: Exp; lines: +4 -4
remove calling of comp and decomp from this
----------------------------
revision 1.30
date: 2017/07/13 04:14:36; author: root; state: Exp; lines: +4 -4
displayMenu return type changed
----------------------------
revision 1.29
date: 2017/07/04 04:19:02; author: root; state: Exp; lines: +1 -1
decompression function called
----------------------------
revision 1.28
date: 2017/07/04 01:56:45; author: root; state: Exp; lines: +1 -1
se
----------------------------
revision 1.27
date: 2017/07/04 01:55:09; author: root; state: Exp; lines: +2 -64
remove the functions from this file and defined them in different file
----------------------------
revision 1.26
date: 2017/07/04 01:27:39; author: root; state: Exp; lines: +1 -3
master array issur resolved
----------------------------
revision 1.25
date: 2017/07/04 01:09:21; author: root; state: Exp; lines: +1 -1
m_arr issue
----------------------------
revision 1.24
date: 2017/07/04 00:59:25; author: root; state: Exp; lines: +1 -1
se
----------------------------
revision 1.23
date: 2017/07/04 00:58:50; author: root; state: Exp; lines: +2 -1
correct m_arr
----------------------------
revision 1.22
date: 2017/07/04 00:55:27; author: root; state: Exp; lines: +1 -1
correcting m_arr
----------------------------
revision 1.21
date: 2017/07/04 00:53:06; author: root; state: Exp; lines: +3 -2
identifying unique character master array
----------------------------
revision 1.20
date: 2017/07/04 00:50:09; author: root; state: Exp; lines: +4 -4
Added new line in End printing
----------------------------
revision 1.19
date: 2017/07/04 00:47:30; author: root; state: Exp; lines: +14 -11
written begin and end function name in each function
----------------------------
revision 1.18
date: 2017/07/04 00:42:40; author: root; state: Exp; lines: +3 -1
identifying unique characters
----------------------------
revision 1.17
date: 2017/07/04 00:40:12; author: root; state: Exp; lines: +2 -1
unique characters not identified
----------------------------
revision 1.16
date: 2017/07/04 00:36:38; author: root; state: Exp; lines: +2 -1
initialize loop iterator in compression
----------------------------
revision 1.15
date: 2017/07/04 00:33:38; author: root; state: Exp; lines: +1 -1
se
----------------------------
revision 1.14
date: 2017/07/04 00:33:02; author: root; state: Exp; lines: +8 -6
se
----------------------------
revision 1.13
date: 2017/07/04 00:22:37; author: root; state: Exp; lines: +15 -4
try to identify unique character and store it in master array
----------------------------
revision 1.12
date: 2017/07/03 06:16:06; author: root; state: Exp; lines: +1 -1
not desired working
----------------------------
revision 1.11
date: 2017/07/03 06:15:20; author: root; state: Exp; lines: +15 -0
made compression function
----------------------------
revision 1.10
date: 2017/07/03 06:08:49; author: root; state: Exp; lines: +2 -2
se
----------------------------
revision 1.9
date: 2017/07/03 06:08:11; author: root; state: Exp; lines: +0 -5
se
----------------------------
revision 1.8
date: 2017/07/03 06:06:07; author: root; state: Exp; lines: +1 -1
se
----------------------------
revision 1.7
date: 2017/07/03 06:04:43; author: root; state: Exp; lines: +20 -0
made openfiler() function
----------------------------
revision 1.6
date: 2017/07/03 05:41:30; author: root; state: Exp; lines: +14 -5
made displayMenu function
----------------------------
revision 1.5
date: 2017/07/03 05:08:26; author: root; state: Exp; lines: +19 -15
displayed main menu in continuous loop
----------------------------
revision 1.4
date: 2017/07/03 05:04:05; author: root; state: Exp; lines: +1 -1
syntax error (se)
----------------------------
revision 1.3
date: 2017/07/03 05:02:46; author: root; state: Exp; lines: +14 -2
displayed menu properly.
Earlier menu not in order.
----------------------------
revision 1.2
date: 2017/07/03 04:56:50; author: root; state: Exp; lines: +14 -0
displayed menu with it's code in main function
----------------------------
revision 1.1
date: 2017/07/03 04:34:06; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: openfile.c,v
Working file: openfile.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
made this by merging openfiler and openfilew
taking mode as argument
----------------------------
revision 1.1 locked by: root;
date: 2017/07/06 16:37:34; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: openfiler.c,v
Working file: openfiler.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
seperated openfiler function in this file
----------------------------
revision 1.2 locked by: root;
date: 2017/07/06 05:07:26; author: root; state: Exp; lines: +2 -0
written Begin and end statement to print function name
----------------------------
revision 1.1
date: 2017/07/04 01:55:56; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: openfilew.c,v
Working file: openfilew.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
function to open file for writing and if it does not exist then create it
----------------------------
revision 1.2 locked by: root;
date: 2017/07/06 05:09:21; author: root; state: Exp; lines: +1 -1
se
----------------------------
revision 1.1
date: 2017/07/06 05:07:52; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: Compression2.c,v
Working file: Compression2.c
head: 1.5
branch:
locks: strict
abhi: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5; selected revisions: 5
description:
Only prints start and end
----------------------------
revision 1.5 locked by: abhi;
date: 2017/07/15 05:50:55; author: abhi;
state: Exp; lines: +3 -0
added write statment in if loop
----------------------------
revision 1.4
date: 2017/07/15 05:33:50; author: abhi;
state: Exp; lines: +2 -0
se
close file discriptor
----------------------------
revision 1.3
date: 2017/07/15 05:15:35; author: abhi;
state: Exp; lines: +76 -2
This function is used to decompresss to 2 bit
code
cf and ef are opened in this funnction to write
values in it
in a single while loop 4 values will be read
from the file and write into cf
unique values will be stored in ef
RCS file: Compression3.c,v
Working file: Compression3.c
head: 1.10
branch:
locks: strict
abhi: 1.10
access list:
symbolic names:
keyword substitution: kv
total revisions: 10; selected revisions: 10
description:
----------------------------
revision 1.10 locked by: abhi;
date: 2017/07/15 16:41:43; author: abhi;
state: Exp; lines: +2 -2
Change in printf statment
----------------------------
revision 1.9
date: 2017/07/15 04:36:35; author: abhi;
state: Exp; lines: +1 -1
se
----------------------------
revision 1.8
date: 2017/07/15 04:35:16; author: abhi;
state: Exp; lines: +3 -0
added xor statment
pre.cjk { font-family: "WenQuanYi Zen Hei Sharp",monospace; }p { margin-bottom: 0.1in; line-height: 120%; }
RCS file: Compression4.c,v
Working file: Compression4.c
head: 1.36
branch:
locks: strict
abhi: 1.36
access list:
symbolic names:
keyword substitution: kv
total revisions: 36; selected revisions: 36
description:
----------------------------
revision 1.36 locked by: abhi;
date: 2017/07/15 16:42:03; author: abhi;
state: Exp; lines: +2 -0
Change in Printf statment
----------------------------
RCS file: Compression5.c,v
Working file: Compression5.c
head: 1.7
branch:
locks: strict
abhi: 1.7
access list:
symbolic names:
keyword substitution: kv
total revisions: 7; selected revisions: 7
description:
----------------------------
revision 1.7 locked by: abhi;
date: 2017/07/15 15:58:59; author: abhi;
state: Exp; lines: +1 -0
se
----------------------------
revision 1.6
date: 2017/07/15 07:53:54; author: abhi;
state: Exp; lines: +5 -4
se
----------------------------
revision 1.5
date: 2017/07/15 07:43:20; author: abhi;
state: Exp; lines: +8 -8
se
----------------------------
revision 1.4
date: 2017/07/15 07:37:07; author: abhi;
state: Exp; lines: +0 -2
se
----------------------------
revision 1.3
date: 2017/07/15 07:26:31; author: abhi;
state: Exp; lines: +188 -2
compress the file having more than 15 distinct
chracter
open CF and EF in write mode write the data from
file in compressed format in cf and Ekey in Ef
in a single cycle of while loop 8 times file is
read and 5 times file is write
----------------------------
pre.cjk { font-family: "WenQuanYi Zen Hei Sharp",monospace; }p { margin-bottom: 0.1in; line-height: 120%; }
RCS file: Compression6.c,v
Working file: Compression6.c
head: 1.4
branch:
locks: strict
abhi: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4; selected revisions: 4
description:
----------------------------
revision 1.4 locked by: abhi;
date: 2017/07/15 16:54:43; author: abhi;
state: Exp; lines: +1 -1
se
----------------------------
revision 1.3
date: 2017/07/15 16:42:15; author: abhi;
state: Exp; lines: +98 -2
this function is used to compress 64 bit code
in a single while 4 values are read from
sourcefile and 3 times write into cf
----------------------------
RCS file: Decompression5.c,v
Working file: Decompression5.c
head: 1.3
branch:
locks: strict
abhi: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
contain print statment only
----------------------------
revision 1.3 locked by: abhi;
date: 2017/07/15 07:35:42; author: abhi;
state: Exp; lines: +2 -2
se
----------------------------
revision 1.2
date: 2017/07/15 07:32:59; author: abhi;
state: Exp; lines: +106 -2
this function decompresses the 32bit code
df is open in write mode
in while loop 5 times value is read from cfd and
8 times write into df
----------------------------
pre.cjk { font-family: "WenQuanYi Zen Hei Sharp",monospace; }p { margin-bottom: 0.1in; line-height: 120%; }
RCS file: Decompression6.c,v
Working file: Decompression6.c
head: 1.3
branch:
locks: strict
abhi: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
Contain print statment only
----------------------------
revision 1.3 locked by: abhi;
date: 2017/07/15 17:00:14; author: abhi;
state: Exp; lines: +4 -0
se
..
----------------------------
revision 1.2
date: 2017/07/15 16:45:08; author: abhi;
state: Exp; lines: +52 -2
this function is used to decompress 64bit code
It looks like you're new here. If you want to get involved, click one of these buttons!