multiple data compression with four bit
RCS file: code_length.c,v
Working file: code_length.c
head: 1.3
branch:
locks: strict
root: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
This is code_length().
Here we calculate the code length of our file.
—————————-
revision 1.3 locked by: root;
date: 2016/03/13 09:31:32; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.2
date: 2016/03/13 09:31:11; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.1
date: 2016/03/13 09:30:21; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: compress3.c,v
Working file: compress3.c
head: 1.4
branch:
locks: strict
root: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4; selected revisions: 4
description:
Create a compress3().
Here we compress the data which code_length is three.
—————————-
revision 1.4 locked by: root;
date: 2016/04/03 14:14:02; author: root; state: Exp; lines: +109 -18
We make a logic to compress three bit data.
In this case we take three char byt and write data at 24 bit then write data into the file.
—————————-
revision 1.3
date: 2016/03/25 11:28:55; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.2
date: 2016/03/25 11:27:26; author: root; state: Exp; lines: +37 -16
*** empty log message ***
—————————-
revision 1.1
date: 2016/03/19 03:42:05; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: compress4.c,v
Working file: compress4.c
head: 1.73
branch:
locks: strict
root: 1.73
access list:
symbolic names:
keyword substitution: kv
total revisions: 73; selected revisions: 73
description:
This is the compress4().
Now simply we print the file name to check it call or not.
—————————-
revision 1.73 locked by: root;
date: 2016/04/03 14:43:13; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.72
date: 2016/04/03 14:42:17; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.71
date: 2016/04/03 14:41:56; author: root; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.70
date: 2016/04/03 14:39:30; author: root; state: Exp; lines: +2 -4
*** empty log message ***
—————————-
revision 1.69
date: 2016/04/03 14:37:33; author: root; state: Exp; lines: +4 -4
*** empty log message ***
—————————-
revision 1.68
date: 2016/04/03 14:34:36; author: root; state: Exp; lines: +1 -0
Check the logic for odd no. inside the file.
And try to solve this issue.
—————————-
revision 1.67
date: 2016/04/02 18:25:27; author: root; state: Exp; lines: +5 -5
*** empty log message ***
—————————-
revision 1.66
date: 2016/03/19 03:44:24; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.65
date: 2016/03/19 03:43:53; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.64
date: 2016/03/14 06:13:38; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.63
date: 2016/03/14 06:07:04; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.62
date: 2016/03/14 06:06:01; author: root; state: Exp; lines: +10 -1
*** empty log message ***
—————————-
revision 1.61
date: 2016/03/14 06:02:57; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.60
date: 2016/03/14 06:02:07; author: root; state: Exp; lines: +5 -5
*** empty log message ***
—————————-
revision 1.59
date: 2016/03/14 05:58:00; author: root; state: Exp; lines: +4 -3
*** empty log message ***
—————————-
revision 1.58
date: 2016/03/14 05:38:10; author: root; state: Exp; lines: +4 -3
*** empty log message ***
—————————-
revision 1.57
date: 2016/03/14 05:34:12; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.56
date: 2016/03/14 05:33:36; author: root; state: Exp; lines: +4 -1
*** empty log message ***
—————————-
revision 1.55
date: 2016/03/14 05:25:52; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.54
date: 2016/03/14 05:22:37; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.53
date: 2016/03/14 05:21:15; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.52
date: 2016/03/14 05:20:41; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.51
date: 2016/03/14 05:19:56; author: root; state: Exp; lines: +1 -0
Print the value of byt.
—————————-
revision 1.50
date: 2016/03/14 05:03:37; author: root; state: Exp; lines: +3 -1
*** empty log message ***
—————————-
revision 1.49
date: 2016/03/14 05:01:38; author: root; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.48
date: 2016/03/14 04:59:52; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.47
date: 2016/03/14 04:56:42; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.46
date: 2016/03/14 04:52:52; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.45
date: 2016/03/14 04:52:00; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.44
date: 2016/03/14 04:51:35; author: root; state: Exp; lines: +3 -1
,
—————————-
revision 1.43
date: 2016/03/14 04:50:57; author: root; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.42
date: 2016/03/14 04:48:42; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.41
date: 2016/03/14 04:45:31; author: root; state: Exp; lines: +0 -5
*** empty log message ***
—————————-
revision 1.40
date: 2016/03/14 04:44:33; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.39
date: 2016/03/14 04:43:54; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.38
date: 2016/03/14 04:43:18; author: root; state: Exp; lines: +13 -3
Check the read().
—————————-
revision 1.37
date: 2016/03/14 04:40:45; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.36
date: 2016/03/13 12:00:54; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.35
date: 2016/03/13 11:59:55; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.34
date: 2016/03/13 11:54:26; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.33
date: 2016/03/13 11:54:10; author: root; state: Exp; lines: +6 -1
*** empty log message ***
—————————-
revision 1.32
date: 2016/03/13 11:51:58; author: root; state: Exp; lines: +3 -4
*** empty log message ***
—————————-
revision 1.31
date: 2016/03/13 11:51:00; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.30
date: 2016/03/13 11:49:43; author: root; state: Exp; lines: +3 -0
*** empty log message ***
—————————-
revision 1.29
date: 2016/03/13 11:47:35; author: root; state: Exp; lines: +0 -2
*** empty log message ***
—————————-
revision 1.28
date: 2016/03/13 11:45:07; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.27
date: 2016/03/13 11:43:35; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.26
date: 2016/03/13 11:43:13; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.25
date: 2016/03/13 11:40:06; author: root; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.24
date: 2016/03/13 11:39:17; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.23
date: 2016/03/13 11:38:03; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.22
date: 2016/03/13 11:37:03; author: root; state: Exp; lines: +4 -4
*** empty log message ***
—————————-
revision 1.21
date: 2016/03/13 11:30:14; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.20
date: 2016/03/13 11:29:54; author: root; state: Exp; lines: +4 -1
*** empty log message ***
—————————-
revision 1.19
date: 2016/03/13 11:28:53; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.18
date: 2016/03/13 11:28:19; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.17
date: 2016/03/13 11:26:59; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.16
date: 2016/03/13 11:26:08; author: root; state: Exp; lines: +1 -2
*** empty log message ***
—————————-
revision 1.15
date: 2016/03/13 11:21:29; author: root; state: Exp; lines: +3 -2
*** empty log message ***
—————————-
revision 1.14
date: 2016/03/13 11:19:06; author: root; state: Exp; lines: +3 -1
Take the cursor to the starting position.
—————————-
revision 1.13
date: 2016/03/13 11:17:03; author: root; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.12
date: 2016/03/13 11:15:43; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.11
date: 2016/03/13 11:14:41; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.10
date: 2016/03/13 11:11:06; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.9
date: 2016/03/13 11:10:04; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.8
date: 2016/03/13 11:09:01; author: root; state: Exp; lines: +1 -1
Declare the variable i.
—————————-
revision 1.7
date: 2016/03/13 11:05:26; author: root; state: Exp; lines: +17 -0
Apply the logic to compress the data.
Fristly we take c and byt variable and ex-or by c^c then it become zero.
Then we apply a for loop and give a condtion if *(key+i) != 0. then condition true if it not then falls.
After this we shift the c left four bit and save the data inside the byt and again read the next bit and aplly same logic now it consider a next bit inside the last four bit in c and or with the byt and save two bit data.
—————————-
revision 1.6
date: 2016/03/13 10:32:15; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.5
date: 2016/03/13 10:31:52; author: root; state: Exp; lines: +4 -4
*** empty log message ***
—————————-
revision 1.4
date: 2016/03/13 10:28:17; author: root; state: Exp; lines: +2 -0
Print the accept element inside the compress4().
—————————-
revision 1.3
date: 2016/03/13 10:26:12; author: root; state: Exp; lines: +4 -4
Accept the arguments here.
—————————-
revision 1.2
date: 2016/03/13 10:12:15; author: root; state: Exp; lines: +9 -0
Open a file in wronly mode.
Print the fd.
—————————-
revision 1.1
date: 2016/03/13 09:42:48; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: compression.c,v
Working file: compression.c
head: 1.36
branch:
locks: strict
root: 1.36
access list:
symbolic names:
keyword substitution: kv
total revisions: 36; selected revisions: 36
description:
This is a compression().
Now only print the file name to check it work or not.
—————————-
revision 1.36 locked by: root;
date: 2016/04/02 15:26:17; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.35
date: 2016/03/25 11:29:14; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.34
date: 2016/03/25 11:28:00; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.33
date: 2016/03/19 03:41:52; author: root; state: Exp; lines: +1 -0
Call the compress3().
—————————-
revision 1.32
date: 2016/03/13 10:26:59; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.31
date: 2016/03/13 10:25:54; author: root; state: Exp; lines: +3 -3
Pass the aguments inside the compress4().
—————————-
revision 1.30
date: 2016/03/13 09:42:37; author: root; state: Exp; lines: +1 -0
Call the compress4().
—————————-
revision 1.29
date: 2016/03/13 09:37:19; author: root; state: Exp; lines: +19 -0
Apply the switch case.
pass the code length inside the switch case acc. to code length it call compress().
According the code length it compress data.
—————————-
revision 1.28
date: 2016/03/13 09:29:43; author: root; state: Exp; lines: +4 -2
Call the code_length().
Return the code_length() and print the code length.
—————————-
revision 1.27
date: 2016/03/13 09:18:14; author: root; state: Exp; lines: +3 -1
Print the masterarray length through strlen().
—————————-
revision 1.26
date: 2016/03/13 09:07:52; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.25
date: 2016/03/13 09:02:43; author: root; state: Exp; lines: +1 -0
Call the save_masterarray().
—————————-
revision 1.24
date: 2016/03/13 08:57:46; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.23
date: 2016/03/13 08:56:54; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.22
date: 2016/03/13 08:55:50; author: root; state: Exp; lines: +4 -5
Remove pointer make its a nocal.
—————————-
revision 1.21
date: 2016/03/13 08:53:46; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.20
date: 2016/03/13 07:23:01; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.19
date: 2016/03/13 07:20:38; author: root; state: Exp; lines: +1 -1
Save the key inside the key variable.
—————————-
revision 1.18
date: 2016/03/13 06:51:10; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.17
date: 2016/03/13 06:50:10; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.16
date: 2016/03/13 06:49:28; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.15
date: 2016/03/13 06:47:13; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.14
date: 2016/03/13 06:46:32; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.13
date: 2016/03/13 06:45:59; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.12
date: 2016/03/13 06:44:33; author: root; state: Exp; lines: +3 -2
Call the create_masterarray().
Save the value inside the a variable.
,
—————————-
revision 1.11
date: 2016/03/13 06:30:16; author: root; state: Exp; lines: +1 -1
Make fd as a pointer and allocate the memory.
—————————-
revision 1.10
date: 2016/03/13 06:29:39; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.9
date: 2016/03/13 06:28:48; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.8
date: 2016/03/13 06:28:25; author: root; state: Exp; lines: +4 -3
*** empty log message ***
—————————-
revision 1.7
date: 2016/03/13 06:24:33; author: root; state: Exp; lines: +8 -7
Provide some commant.
—————————-
revision 1.6
date: 2016/03/13 06:16:54; author: root; state: Exp; lines: +1 -1
Print the value of file descriptor.
—————————-
revision 1.5
date: 2016/03/13 06:16:23; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.4
date: 2016/03/13 06:15:12; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.3
date: 2016/03/13 06:13:56; author: root; state: Exp; lines: +6 -0
Declare the fd which is integer type.
—————————-
revision 1.2
date: 2016/03/13 06:09:49; author: root; state: Exp; lines: +6 -0
we define a varible whice is integer.
Allocate the 15 bit memory through malloc().
Scan the name from user
And pass the name inside the open().
This return the file file_descriptor.
—————————-
revision 1.1
date: 2016/03/13 05:55:00; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: create_masterarray.c,v
Working file: create_masterarray.c
head: 1.38
branch:
locks: strict
root: 1.38
access list:
symbolic names:
keyword substitution: kv
total revisions: 38; selected revisions: 38
description:
This is create_masterarry().
Here we take the encription key through this.
Now we simply check the create_masterarray() call or not.
—————————-
revision 1.38 locked by: root;
date: 2016/04/02 15:26:19; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.37
date: 2016/03/14 04:46:45; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.36
date: 2016/03/14 04:42:09; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.35
date: 2016/03/14 04:41:50; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.34
date: 2016/03/13 11:46:19; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.33
date: 2016/03/13 11:45:47; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.32
date: 2016/03/13 11:23:49; author: root; state: Exp; lines: +1 -1
Put the null at the masterarray.
To end of string.
—————————-
revision 1.31
date: 2016/03/13 08:56:07; author: root; state: Exp; lines: +2 -4
return the masterkey through this.
—————————-
revision 1.30
date: 2016/03/13 08:34:41; author: root; state: Exp; lines: +1 -2
*** empty log message ***
—————————-
revision 1.29
date: 2016/03/13 08:33:14; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.28
date: 2016/03/13 08:31:24; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.27
date: 2016/03/13 08:30:55; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.26
date: 2016/03/13 08:24:27; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.25
date: 2016/03/13 08:21:22; author: root; state: Exp; lines: +11 -5
*** empty log message ***
—————————-
revision 1.24
date: 2016/03/13 08:13:05; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.23
date: 2016/03/13 08:11:34; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.22
date: 2016/03/13 08:10:25; author: root; state: Exp; lines: +3 -1
*** empty log message ***
—————————-
revision 1.21
date: 2016/03/13 08:05:49; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.20
date: 2016/03/13 08:03:21; author: root; state: Exp; lines: +1 -7
*** empty log message ***
—————————-
revision 1.19
date: 2016/03/13 08:01:25; author: root; state: Exp; lines: +7 -7
*** empty log message ***
—————————-
revision 1.18
date: 2016/03/13 07:59:42; author: root; state: Exp; lines: +1 -3
*** empty log message ***
—————————-
revision 1.17
date: 2016/03/13 07:46:34; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.16
date: 2016/03/13 07:46:07; author: root; state: Exp; lines: +3 -0
*** empty log message ***
—————————-
revision 1.15
date: 2016/03/13 07:39:36; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.14
date: 2016/03/13 07:38:37; author: root; state: Exp; lines: +3 -2
*** empty log message ***
—————————-
revision 1.13
date: 2016/03/13 07:37:43; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.12
date: 2016/03/13 07:36:49; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.11
date: 2016/03/13 07:35:25; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.10
date: 2016/03/13 07:32:26; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.9
date: 2016/03/13 07:29:47; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.8
date: 2016/03/13 07:29:06; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.7
date: 2016/03/13 07:28:45; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.6
date: 2016/03/13 07:26:14; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.5
date: 2016/03/13 07:25:40; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.4
date: 2016/03/13 07:24:57; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2016/03/13 07:24:06; author: root; state: Exp; lines: +1 -1
Call the realloc() this create memory if we require.
—————————-
revision 1.2
date: 2016/03/13 07:21:00; author: root; state: Exp; lines: +33 -2
Here we read the file through the file descriptor and read at the last null character.
We make a unique key through this function.
—————————-
revision 1.1
date: 2016/03/13 06:53:34; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: decompress4.c,v
Working file: decompress4.c
head: 1.41
branch:
locks: strict
root: 1.41
access list:
symbolic names:
keyword substitution: kv
total revisions: 41; selected revisions: 41
description:
This is decompress4().
—————————-
revision 1.41 locked by: root;
date: 2016/04/03 14:35:02; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.40
date: 2016/04/03 14:31:52; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.39
date: 2016/04/03 14:30:59; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.38
date: 2016/04/03 14:30:10; author: root; state: Exp; lines: +3 -1
*** empty log message ***
—————————-
revision 1.37
date: 2016/04/03 14:28:38; author: root; state: Exp; lines: +4 -2
*** empty log message ***
—————————-
revision 1.36
date: 2016/04/03 08:12:15; author: root; state: Exp; lines: +1 -0
Print some msg.
—————————-
revision 1.35
date: 2016/04/03 07:47:36; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.34
date: 2016/04/03 07:27:04; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.33
date: 2016/04/03 07:23:52; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.32
date: 2016/04/03 06:39:42; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.31
date: 2016/04/03 06:35:15; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.30
date: 2016/04/03 06:25:24; author: root; state: Exp; lines: +5 -5
*** empty log message ***
—————————-
revision 1.29
date: 2016/04/03 06:22:01; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.28
date: 2016/04/03 06:20:02; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.27
date: 2016/04/03 06:17:53; author: root; state: Exp; lines: +5 -5
*** empty log message ***
—————————-
revision 1.26
date: 2016/04/03 02:33:43; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.25
date: 2016/04/03 02:33:27; author: root; state: Exp; lines: +12 -2
*** empty log message ***
—————————-
revision 1.24
date: 2016/04/03 02:29:38; author: root; state: Exp; lines: +7 -5
*** empty log message ***
—————————-
revision 1.23
date: 2016/04/03 02:20:01; author: root; state: Exp; lines: +2 -1
Print the value of index_word() return value.
—————————-
revision 1.22
date: 2016/04/03 02:10:13; author: root; state: Exp; lines: +2 -1
Call the index_word().
Pass the fd inside this.
—————————-
revision 1.21
date: 2016/04/03 02:06:01; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.20
date: 2016/04/03 02:04:39; author: root; state: Exp; lines: +7 -1
Open or creat a new file with name of decompress_file.
Check its fd and print the value of fd.
—————————-
revision 1.19
date: 2016/04/02 18:22:12; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.18
date: 2016/04/02 18:20:31; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.17
date: 2016/04/02 18:18:53; author: root; state: Exp; lines: +5 -2
*** empty log message ***
—————————-
revision 1.16
date: 2016/04/02 18:13:46; author: root; state: Exp; lines: +3 -0
*** empty log message ***
—————————-
revision 1.15
date: 2016/04/02 18:11:10; author: root; state: Exp; lines: +4 -0
*** empty log message ***
—————————-
revision 1.14
date: 2016/04/02 18:08:06; author: root; state: Exp; lines: +9 -9
Open a compress_file.
—————————-
revision 1.13
date: 2016/04/02 18:01:29; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.12
date: 2016/04/02 17:59:25; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.11
date: 2016/04/02 17:57:07; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.10
date: 2016/04/02 15:40:34; author: root; state: Exp; lines: +3 -2
Print the save_masterarray fd in compress4().
—————————-
revision 1.9
date: 2016/04/02 15:39:07; author: root; state: Exp; lines: +8 -8
Print the compress_file fd.
—————————-
revision 1.8
date: 2016/04/02 15:35:53; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.7
date: 2016/04/02 15:35:02; author: root; state: Exp; lines: +1 -1
Open the compress file.
—————————-
revision 1.6
date: 2016/04/02 15:33:01; author: root; state: Exp; lines: +1 -0
Print the value of dfd.
—————————-
revision 1.5
date: 2016/04/02 15:31:33; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.4
date: 2016/04/02 15:30:16; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2016/04/02 15:27:26; author: root; state: Exp; lines: +2 -3
*** empty log message ***
—————————-
revision 1.2
date: 2016/04/02 15:26:20; author: root; state: Exp; lines: +25 -1
*** empty log message ***
—————————-
revision 1.1
date: 2016/03/25 12:28:33; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: decompression.c,v
Working file: decompression.c
head: 1.25
branch:
locks: strict
root: 1.25
access list:
symbolic names:
keyword substitution: kv
total revisions: 25; selected revisions: 25
description:
This is a decompression().
Inside the decompression() we only check the function is call or not. we simply print the file name.
—————————-
revision 1.25 locked by: root;
date: 2016/04/03 14:21:53; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.24
date: 2016/04/03 08:10:44; author: root; state: Exp; lines: +3 -1
*** empty log message ***
—————————-
revision 1.23
date: 2016/04/03 04:43:29; author: root; state: Exp; lines: +3 -8
*** empty log message ***
—————————-
revision 1.22
date: 2016/04/03 04:34:40; author: root; state: Exp; lines: +1 -0
Print the value of key.
—————————-
revision 1.21
date: 2016/04/02 18:07:30; author: root; state: Exp; lines: +3 -9
Remove some call like open of compress_file.
—————————-
revision 1.20
date: 2016/04/02 15:42:34; author: root; state: Exp; lines: +2 -0
Print the fd inside compression().
—————————-
revision 1.19
date: 2016/04/02 15:38:42; author: root; state: Exp; lines: +2 -2
Send the compress_file fd in read only mode in compress4.
—————————-
revision 1.18
date: 2016/03/25 12:29:48; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.17
date: 2016/03/25 12:26:09; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.16
date: 2016/03/25 12:25:46; author: root; state: Exp; lines: +6 -13
Call the decompres4().
—————————-
revision 1.15
date: 2016/03/25 12:04:16; author: root; state: Exp; lines: +28 -2
*** empty log message ***
—————————-
revision 1.14
date: 2016/03/25 11:57:00; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.13
date: 2016/03/25 11:56:16; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.12
date: 2016/03/25 11:55:07; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.11
date: 2016/03/25 11:52:20; author: root; state: Exp; lines: +5 -3
*** empty log message ***
—————————-
revision 1.10
date: 2016/03/25 11:50:21; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.9
date: 2016/03/25 11:50:02; author: root; state: Exp; lines: +8 -1
*** empty log message ***
—————————-
revision 1.8
date: 2016/03/25 11:47:04; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.7
date: 2016/03/25 11:44:36; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.6
date: 2016/03/25 11:42:44; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.5
date: 2016/03/25 11:41:54; author: root; state: Exp; lines: +8 -3
Open a file in rdonly and print it.
—————————-
revision 1.4
date: 2016/03/25 11:36:01; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2016/03/25 11:31:24; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.2
date: 2016/03/25 11:26:49; author: root; state: Exp; lines: +15 -0
Decompression().
Open a file in wronly.
Also print the encription_key from user.
—————————-
revision 1.1
date: 2016/03/13 06:01:21; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: header.h,v
Working file: header.h
head: 1.3
branch:
locks: strict
root: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
This is the header().
Inside this function we declare all the libraray.
We include the stdio.h libraray which means stander input output header.
—————————-
revision 1.3 locked by: root;
date: 2016/03/13 09:19:28; author: root; state: Exp; lines: +1 -0
Add the header file string.h becuse we use the stdlen().
This function define into the string.h libraray so we include it inside it.
—————————-
revision 1.2
date: 2016/03/13 06:13:29; author: root; state: Exp; lines: +2 -0
Add the libraray for exit().
Add the header file for open().
—————————-
revision 1.1
date: 2016/03/13 05:29:56; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: index_word.c,v
Working file: index_word.c
head: 1.23
branch:
locks: strict
root: 1.23
access list:
symbolic names:
keyword substitution: kv
total revisions: 23; selected revisions: 23
description:
Make a index_word().
Pass the arguments as fd.
print the value of fd.
—————————-
revision 1.23 locked by: root;
date: 2016/04/03 14:21:21; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.22
date: 2016/04/03 08:12:21; author: root; state: Exp; lines: +2 -2
Commant some arguments.
—————————-
revision 1.21
date: 2016/04/03 07:26:13; author: root; state: Exp; lines: +1 -2
*** empty log message ***
—————————-
revision 1.20
date: 2016/04/03 07:10:18; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.19
date: 2016/04/03 07:09:56; author: root; state: Exp; lines: +4 -5
*** empty log message ***
—————————-
revision 1.18
date: 2016/04/03 07:07:15; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.17
date: 2016/04/03 07:05:17; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.16
date: 2016/04/03 07:04:21; author: root; state: Exp; lines: +3 -2
*** empty log message ***
—————————-
revision 1.15
date: 2016/04/03 06:41:53; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.14
date: 2016/04/03 06:40:35; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.13
date: 2016/04/03 06:38:17; author: root; state: Exp; lines: +1 -3
*** empty log message ***
—————————-
revision 1.12
date: 2016/04/03 06:32:23; author: root; state: Exp; lines: +3 -1
*** empty log message ***
—————————-
revision 1.11
date: 2016/04/03 06:30:13; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.10
date: 2016/04/03 06:29:34; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.9
date: 2016/04/03 06:27:39; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.8
date: 2016/04/03 06:25:25; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.7
date: 2016/04/03 02:35:21; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.6
date: 2016/04/03 02:27:04; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.5
date: 2016/04/03 02:25:11; author: root; state: Exp; lines: +1 -0
Use the lseek().
—————————-
revision 1.4
date: 2016/04/03 02:23:13; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.3
date: 2016/04/03 02:21:46; author: root; state: Exp; lines: +2 -1
Typecast the value of ch into integer.
—————————-
revision 1.2
date: 2016/04/03 02:20:22; author: root; state: Exp; lines: +21 -1
Make a logic to take a word at a particular index.
We read the fd.
—————————-
revision 1.1
date: 2016/04/03 02:12:13; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: mainmenu.c,v
Working file: mainmenu.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
This is a manimenu().
Here we take the choice from user and return the value of choice inside the mainmenu().
Here we define the menu.
—————————-
revision 1.1 locked by: root;
date: 2016/03/13 05:32:22; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: mdc.c,v
Working file: mdc.c
head: 1.3
branch:
locks: strict
root: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
This is our main function mdc().
Inside this function mainmenu() return the value of choice.
We take the value of choice and rotate it into the while loop.
we use switch case.
Inside the switch case we provide the value of choice and make case acc. to user choice.
—————————-
revision 1.3 locked by: root;
date: 2016/03/13 06:01:11; author: root; state: Exp; lines: +1 -0
Call the decompression().
—————————-
revision 1.2
date: 2016/03/13 05:54:48; author: root; state: Exp; lines: +1 -0
Call the compression().
—————————-
revision 1.1
date: 2016/03/13 05:33:30; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: prototype.h,v
Working file: prototype.h
head: 1.23
branch:
locks: strict
root: 1.23
access list:
symbolic names:
keyword substitution: kv
total revisions: 23; selected revisions: 23
description:
This is a prototype().
Inside this function we declare the mainmenu().
Here we define its prototype. it return integer and take void argument.
—————————-
revision 1.23 locked by: root;
date: 2016/04/03 02:19:51; author: root; state: Exp; lines: +1 -1
Add the return type is char.
—————————-
revision 1.22
date: 2016/04/03 02:09:43; author: root; state: Exp; lines: +1 -0
Add the new index_word().
Add its prototypes and argument.
—————————-
revision 1.21
date: 2016/04/02 18:07:04; author: root; state: Exp; lines: +1 -1
Delete 2nd arument inside the decompress4().
—————————-
revision 1.20
date: 2016/03/25 12:25:34; author: root; state: Exp; lines: +1 -0
Add the decompress4().
—————————-
revision 1.19
date: 2016/03/25 11:41:34; author: root; state: Exp; lines: +0 -1
remove the code_len().
—————————-
revision 1.18
date: 2016/03/25 11:30:36; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.17
date: 2016/03/25 11:28:54; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.16
date: 2016/03/25 11:27:59; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.15
date: 2016/03/25 11:26:30; author: root; state: Exp; lines: +1 -0
Add the new function code_len().
—————————-
revision 1.14
date: 2016/03/19 03:41:20; author: root; state: Exp; lines: +2 -1
Add the compress3().
Pass the prototype and return type.
—————————-
revision 1.13
date: 2016/03/13 10:25:34; author: root; state: Exp; lines: +1 -0
Add the compress4().
Pass the argument inside it.
—————————-
revision 1.12
date: 2016/03/13 09:29:15; author: root; state: Exp; lines: +1 -0
Add the code_length().
Pass the argument type interger and return type is interger.
—————————-
revision 1.11
date: 2016/03/13 09:06:44; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.10
date: 2016/03/13 09:02:16; author: root; state: Exp; lines: +1 -0
Add the save_masterarray().
Pass the argument and its return type.
—————————-
revision 1.9
date: 2016/03/13 08:55:32; author: root; state: Exp; lines: +1 -1
Remove argument pointer make it simple.
—————————-
revision 1.8
date: 2016/03/13 07:22:59; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.7
date: 2016/03/13 07:20:13; author: root; state: Exp; lines: +1 -1
Define return type of create_masterarray().
—————————-
revision 1.6
date: 2016/03/13 06:48:55; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.5
date: 2016/03/13 06:48:19; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.4
date: 2016/03/13 06:43:56; author: root; state: Exp; lines: +1 -0
Add the create_masterarray().
Pass the pointer argument and its return type is integer.
—————————-
revision 1.3
date: 2016/03/13 06:00:34; author: root; state: Exp; lines: +1 -0
Add the decompression()
Pass the argument and define its return type is integer.
—————————-
revision 1.2
date: 2016/03/13 05:54:06; author: root; state: Exp; lines: +1 -0
Add the compression().
This function return type is integer.
—————————-
revision 1.1
date: 2016/03/13 05:31:18; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: save_masterarray.c,v
Working file: save_masterarray.c
head: 1.7
branch:
locks: strict
root: 1.7
access list:
symbolic names:
keyword substitution: kv
total revisions: 7; selected revisions: 7
description:
This is the save_masterarray().
Here create a file name is save_masterarray.
Open this file into the write only mode.
Print the fd if it open.
—————————-
revision 1.7 locked by: root;
date: 2016/03/13 09:39:10; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.6
date: 2016/03/13 09:16:25; author: root; state: Exp; lines: +3 -2
*** empty log message ***
—————————-
revision 1.5
date: 2016/03/13 09:13:06; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.4
date: 2016/03/13 09:11:19; author: root; state: Exp; lines: +1 -0
declare the char ch.
—————————-
revision 1.3
date: 2016/03/13 09:10:45; author: root; state: Exp; lines: +1 -0
Write the data inside the save_master array.
—————————-
revision 1.2
date: 2016/03/13 09:08:55; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.1
date: 2016/03/13 09:04:12; author: root; state: Exp;
Initial revision
=============================================================================