EmbLogic's Blog

Updated RCS Log File

RCS file: mdc.c,v Working file: mdc.c head: 1.6 branch: locks: strict ravi: 1.6 access list: symbolic names: keyword substitution: kv total revisions: 6; selected revisions: 6 description: Unique Master Array is being created using functions and pointers countred the codelength of the unique master array saved the master array in a new file —————————- revision 1.6 locked by: ravi; date: 2015/06/26 11:57:00; author: ravi; state: Exp; lines: +5 -10 name of the file accepted as an argument argv[] —————————- revision 1.5 date: 2015/06/25 17:04:13; author: root; state: Exp; lines: +0 -1 compress function is written in a file other than the main file And Linked to the mdc.c file. —————————- revision 1.4 date: 2015/06/25 14:30:43; author: root; state: Exp; lines: +6 -11 created a new header file named header.h header.h is included in the main using #include”header.h” —————————- revision 1.3 date: 2015/06/25 12:51:34; author: root; state: Exp; lines: +2 -2 Debugged the program using GDB Debugger REemoved the segmentation fault —————————- revision 1.2 date: 2015/06/25 12:47:56; author: root; state: Exp; lines: +5 -3 Created unique master array using realloc found out segmentation fault —————————- revision 1.1 date: 2015/06/25 10:06:14; 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: Prototypes are excluded from header.h and included in a new file named prototypes.h —————————- revision 1.1 locked by: root; date: 2015/06/26 09:13:28; author: root; state: Exp; Initial revision ============================================================================= RCS file: prototypes.h,v Working file: prototypes.h head: 1.3 branch: locks: strict root: 1.3 access list: symbolic names: keyword substitution: kv total revisions: 3; selected revisions: 3 description: prototyping done! —————————- revision 1.3 locked by: root; date: 2015/06/26 13:25:41; author: root; state: Exp; lines: +8 -1 prototypes for all compress[X].c functions is declared. —————————- revision 1.2 date: 2015/06/26 10:08:53; author: root; state: Exp; lines: +1 -1 Type of second argument of function compress is changed to char* from int —————————- revision 1.1 date: 2015/06/26 09:13:28; author: root; state: Exp; Initial revision ============================================================================= RCS file: compress.c,v Working file: compress.c head: 1.7 branch: locks: strict ravi: 1.7 access list: symbolic names: keyword substitution: kv total revisions: 7; selected revisions: 7 description: error undefined refrence to the file compression.c is removed —————————- revision 1.7 locked by: ravi; date: 2015/06/27 03:58:00; author: ravi; state: Exp; lines: +14 -8 All the seven functions declared as extern are called using switch case statements. —————————- revision 1.6 date: 2015/06/26 13:44:54; author: ravi; state: Exp; lines: +2 -1 error from switch statement is removed. —————————- revision 1.5 date: 2015/06/26 13:37:06; author: ravi; state: Exp; lines: +27 -3 Functions for compressing file of variable code length are called using switch case statements —————————- revision 1.4 date: 2015/06/26 10:41:16; author: root; state: Exp; lines: +7 -2 *** empty log message *** —————————- revision 1.3 date: 2015/06/26 10:18:42; author: root; state: Exp; lines: +1 -1 new file descripter declared —————————- revision 1.2 date: 2015/06/26 10:10:29; author: root; state: Exp; lines: +6 -51 rebuilded by getting arguments as char* and calling functioins create_master_array and code_length() —————————- revision 1.1 date: 2015/06/26 09:29:10; author: root; state: Exp; Initial revision ============================================================================= RCS file: compress2.c,v Working file: compress2.c head: 1.2 branch: locks: strict root: 1.2 access list: symbolic names: keyword substitution: kv total revisions: 2; selected revisions: 2 description: compress2.c created! —————————- revision 1.2 locked by: root; date: 2015/06/26 14:01:02; author: root; state: Exp; lines: +3 -3 file revisited —————————- revision 1.1 date: 2015/06/26 13:27:56; 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: compress3.c created —————————- revision 1.2 locked by: root; date: 2015/06/26 14:01:26; author: root; state: Exp; lines: +3 -3 file revisited —————————- revision 1.1 date: 2015/06/26 13:28:24; author: root; state: Exp; Initial revision ============================================================================= RCS file: compress4.c,v Working file: compress4.c head: 1.2 branch: locks: strict root: 1.2 access list: symbolic names: keyword substitution: kv total revisions: 2; selected revisions: 2 description: compress4.c created —————————- revision 1.2 locked by: root; date: 2015/06/26 14:01:42; author: root; state: Exp; lines: +2 -2 file revisited —————————- revision 1.1 date: 2015/06/26 13:29:22; 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: compress5.c created —————————- revision 1.2 locked by: root; date: 2015/06/26 14:01:50; author: root; state: Exp; lines: +3 -3 file revisited —————————- revision 1.1 date: 2015/06/26 13:29:34; 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: compress6.c created —————————- revision 1.2 locked by: root; date: 2015/06/26 14:01:55; author: root; state: Exp; lines: +3 -3 file revisited —————————- revision 1.1 date: 2015/06/26 13:29:47; 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: compress7.c created —————————- revision 1.2 locked by: root; date: 2015/06/26 14:02:02; author: root; state: Exp; lines: +3 -3 file revisited —————————- revision 1.1 date: 2015/06/26 13:32:05; author: root; state: Exp; Initial revision =============================================================================

Posted in Project 2: Multiple Data Compression and Encryption, Uncategorized | Leave a comment

MDCEIT with split files

RCS file: header.h,v
Working file: header.h
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2;    selected revisions: 2
description:
includes all headers files used in the program.
—————————-
revision 1.2    locked by: root;
date: 2015/06/26 12:15:46;  author: root;  state: Exp;  lines: +0 -5
remove function prototypes from this file.
—————————-
revision 1.1
date: 2015/06/26 12:13:15;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: prototype.h,v
Working file: prototype.h
head: 1.5
branch:
locks: strict
root: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5;    selected revisions: 5
description:
define all the function prototypes used in the main program file.
—————————-
revision 1.5    locked by: root;
date: 2015/06/27 06:32:33;  author: root;  state: Exp;  lines: +1 -1
declare argument for open_file().
—————————-
revision 1.4
date: 2015/06/26 13:27:51;  author: root;  state: Exp;  lines: +6 -0
declare prototypes for compression2,3,4,5,6,7 ().
—————————-
revision 1.3
date: 2015/06/26 13:12:17;  author: root;  state: Exp;  lines: +1 -1
declare argument for open file().
—————————-
revision 1.2
date: 2015/06/26 12:51:14;  author: root;  state: Exp;  lines: +1 -1
change int argument to char * type in compression().
—————————-
revision 1.1
date: 2015/06/26 12:17:38;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: compression.c,v
Working file: compression.c
head: 1.7
branch:
locks: strict
root: 1.7
access list:
symbolic names:
keyword substitution: kv
total revisions: 7;    selected revisions: 7
description:
Call compression function separately in this file.
—————————-
revision 1.7    locked by: root;
date: 2015/06/27 05:55:25;  author: root;  state: Exp;  lines: +0 -6
remove the duplicate file.
—————————-
revision 1.6
date: 2015/06/27 05:51:00;  author: root;  state: Exp;  lines: +1 -1
remove ; after switch().
—————————-
revision 1.5
date: 2015/06/27 05:46:38;  author: root;  state: Exp;  lines: +2 -1
add the braces in the statement for switch().
/
—————————-
revision 1.4
date: 2015/06/26 13:34:24;  author: root;  state: Exp;  lines: +2 -19
declare int ret.
—————————-
revision 1.3
date: 2015/06/26 13:28:43;  author: root;  state: Exp;  lines: +50 -1
add call functions for compression2,3,4,5,6,7() depending upon the different code lengths.
—————————-
revision 1.2
date: 2015/06/26 12:59:48;  author: root;  state: Exp;  lines: +9 -11
find string length and code length in this file.
As there is no need to find string length and code length in main file. Therefore, move these functions from main file to this file.
—————————-
revision 1.1
date: 2015/06/26 12:06:55;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: compression2.c,v
Working file: compression2.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
create file for code length= 2.
—————————-
revision 1.1    locked by: root;
date: 2015/06/27 07:10:46;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: compression3.c,v
Working file: compression3.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
create file for code length= 3.
—————————-
revision 1.1    locked by: root;
date: 2015/06/27 07:12:21;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: compression4.c,v
Working file: compression4.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
>> create file for code length= 3.
create file for code length= 4
—————————-
revision 1.1    locked by: root;
date: 2015/06/27 07:12:58;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: compression5.c,v
Working file: compression5.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
create file for code length= 5
—————————-
revision 1.1    locked by: root;
date: 2015/06/27 07:13:50;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: compression6.c,v
Working file: compression6.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
create file for code length= 6.
—————————-
revision 1.1    locked by: root;
date: 2015/06/27 07:14:11;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: compression7.c,v
Working file: compression7.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
create file for code length= 7.
—————————-
revision 1.1    locked by: root;
date: 2015/06/27 07:14:35;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: openfile_1.c,v
Working file: openfile_1.c
head: 1.7
branch:
locks: strict
root: 1.7
access list:
symbolic names:
keyword substitution: kv
total revisions: 8;    selected revisions: 8
description:
Unique master array created using malloc
code length found using functions.
—————————-
revision 1.7    locked by: root;
date: 2015/06/27 06:33:11;  author: root;  state: Exp;  lines: +4 -4
declare command line argument in main() and pass the address in the call open_file() and pass the same address pointer to the definition of openfile().
—————————-
revision 1.6
date: 2015/06/26 13:13:45;  author: root;  state: Exp;  lines: +2 -2
In open file () definition declare argument to take input from command line.
—————————-
revision 1.5
date: 2015/06/26 12:52:33;  author: root;  state: Exp;  lines: +2 -5
pass array instead of file descriptor of Master array.
move string length and code length function to compression filemove printf for string and code length to compression file.
—————————-
revision 1.4
date: 2015/06/25 12:54:40;  author: eblogic;  state: Exp;  lines: +1 -21
split the file
create header.h file and place all header files from openfile_1 to header.h file
declare compression function definition in different file with name compression.c
In header.h file declare the compression function prototype as extern.
—————————-
revision 1.3
date: 2015/06/25 10:18:19;  author: eblogic;  state: Exp;  lines: +2 -2
Remove the malloc function and recreate the master array using realloc function.
—————————-
revision 1.2
date: 2015/06/25 09:25:21;  author: eblogic;  state: Exp;  lines: +1 -1
remove the comment from the malloc command
—————————-
revision 1.1
date: 2015/06/25 09:17:25;  author: eblogic;  state: Exp;
branches:  1.1.1;
Initial revision
—————————-
revision 1.1.1.1
date: 2015/06/25 12:01:33;  author: eblogic;  state: Exp;  lines: +1 -1
enter comment on already commented line
=============================================================================

Posted in Uncategorized | Leave a comment

MY logfile till 27 june

RCS file: mdc.c,v
Working file: mdc.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2;     selected revisions: 2
description:
project consist of master array and using the pointer and write the master array into the creadted file
we have used the malloc function to allocate the memory to the arary pointer and used into the project
—————————-
revision 1.2    locked by: root;
date: 2015/06/25 19:35:59;  author: root;  state: Exp;  lines: +62 -55
using the realloc function we have allocated the memory to the first character and the next character which we are reading form the file
using malloc and realloc function
—————————-
revision 1.1
date: 2015/06/25 18:50:58;  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:
header file consist of haeder files and function prototype of the functions
1,0-1         Top
—————————-
revision 1.1    locked by: root;
date: 2015/06/25 20:05:27;  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:
project consist of master array and using the pointer and write the master array into the creadted file
we have used the malloc function to allocate the memory to the arary pointer and used into the project
—————————-
revision 1.3    locked by: root;
date: 2015/06/27 16:47:43;  author: root;  state: Exp;  lines: +20 -26
i have created my compression file in which i have called the compression function and passing the argumments into the main function
i have called the file during run time
—————————-
revision 1.2
date: 2015/06/25 19:35:59;  author: root;  state: Exp;  lines: +62 -55
using the realloc function we have allocated the memory to the first character and the next character which we are reading form the file
using malloc and realloc function
—————————-
revision 1.1
date: 2015/06/25 18:50:58;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: compression.c,v
Working file: compression.c
=============================================================================

RCS file: compression.c,v
Working file: compression.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 my compression file in which we will pass the code length and goes to the switch function and compress the data
—————————-
revision 1.1    locked by: root;
date: 2015/06/27 17:07:30;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: prototype.h,v
Working file: prototype.h
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 my prototype file in which i have created prototype of the functions and compression function prototype
—————————-
revision 1.1    locked by: root;
date: 2015/06/27 17:24:20;  author: root;  state: Exp;
Initial revision
=============================================================================
107,1         Bot
74,1          52%

Posted in Uncategorized | Leave a comment

Project MDCEIT by rcs, gdb and split multiple files

RCS file: header.h,v
Working file: header.h
head: 1.4
branch:
locks: strict
emblogic: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4;    selected revisions: 4
description:
contains only headers
—————————-
revision 1.4    locked by: emblogic;
date: 2015/06/26 10:40:10;  author: emblogic;  state: Exp;  lines: +0 -5
removed prototypes
—————————-
revision 1.3
date: 2015/06/26 09:08:57;  author: emblogic;  state: Exp;  lines: +1 -1
edited compression with int
—————————-
revision 1.2
date: 2015/06/26 08:57:42;  author: emblogic;  state: Exp;  lines: +1 -0
extern compression
—————————-
revision 1.1
date: 2015/06/26 08:31:58;  author: emblogic;  state: Exp;
Initial revision
=============================================================================

RCS file: prototype.h,v
Working file: prototype.h
head: 1.4
branch:
locks: strict
emblogic: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4;    selected revisions: 4
description:
contais only prototypes
—————————-
revision 1.4    locked by: emblogic;
date: 2015/06/27 06:44:44;  author: emblogic;  state: Exp;  lines: +1 -1
removed int frm open file
—————————-
revision 1.3
date: 2015/06/26 13:26:49;  author: emblogic;  state: Exp;  lines: +8 -1
declared prototypes for compression 2,3,4,5,6,7.
—————————-
revision 1.2
date: 2015/06/26 11:54:05;  author: emblogic;  state: Exp;  lines: +1 -1
changed arguement of code length and length of aaray
—————————-
revision 1.1
date: 2015/06/26 10:51:29;  author: emblogic;  state: Exp;
Initial revision
=============================================================================

RCS file: mdc_realloc_main.c,v
Working file: mdc_realloc_main.c
head: 1.12
branch:
locks: strict
emblogic: 1.12
access list:
symbolic names:
keyword substitution: kv
total revisions: 12;    selected revisions: 12
description:
create file
created master array using realloc
save master array
—————————-
revision 1.12    locked by: emblogic;
date: 2015/06/27 07:23:28;  author: emblogic;  state: Exp;  lines: +1 -1
removed erroe in open file “” buffer
—————————-
revision 1.11
date: 2015/06/27 06:43:12;  author: emblogic;  state: Exp;  lines: +3 -4
declared in main function
—————————-
revision 1.10
date: 2015/06/27 06:30:44;  author: emblogic;  state: Exp;  lines: +1 -0
declared argv in open file
—————————-
revision 1.9
date: 2015/06/27 06:29:02;  author: emblogic;  state: Exp;  lines: +1 -1
entered argv to open file
—————————-
revision 1.8
date: 2015/06/27 03:42:03;  author: emblogic;  state: Exp;  lines: +1 -1
declared len in int
—————————-
revision 1.7
date: 2015/06/26 13:27:40;  author: emblogic;  state: Exp;  lines: +2 -2
passed argument in open file so that file can be changed at the time of execution
removed open filed and insted of that we have entered argument command so that file can be changed at the time of execution
—————————-
revision 1.6
date: 2015/06/26 11:56:09;  author: emblogic;  state: Exp;  lines: +2 -5
removed code length and length of array
shifted code length and array length to comression
—————————-
revision 1.5
date: 2015/06/26 10:37:49;  author: emblogic;  state: Exp;  lines: +1 -0
*** empty log message ***
—————————-
revision 1.4
date: 2015/06/26 09:11:23;  author: emblogic;  state: Exp;  lines: +5 -4
called compression in main
—————————-
revision 1.3
date: 2015/06/26 08:51:23;  author: emblogic;  state: Exp;  lines: +1 -0
called compression function
—————————-
revision 1.2
date: 2015/06/26 08:33:58;  author: emblogic;  state: Exp;  lines: +1 -8
created header file seperately
deleted headers in this file
called header using include header.h
—————————-
revision 1.1
date: 2015/06/26 08:28:01;  author: emblogic;  state: Exp;
Initial revision
=============================================================================

RCS file: compression.c,v
Working file: compression.c
head: 1.12
branch:
locks: strict
emblogic: 1.12
access list:
symbolic names:
keyword substitution: kv
total revisions: 12;    selected revisions: 12
description:
created compression file
—————————-
revision 1.12    locked by: emblogic;
date: 2015/06/27 03:37:08;  author: emblogic;  state: Exp;  lines: +2 -0
edited switch command
—————————-
revision 1.11
date: 2015/06/26 13:48:59;  author: emblogic;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.10
date: 2015/06/26 13:35:52;  author: emblogic;  state: Exp;  lines: +12 -1
*** empty log message ***
—————————-
revision 1.9
date: 2015/06/26 13:33:37;  author: emblogic;  state: Exp;  lines: +1 -1
declared ret in int
—————————-
revision 1.8
date: 2015/06/26 13:29:39;  author: emblogic;  state: Exp;  lines: +32 -1
switch stages
compression cases and comparing the cases according to code length .
—————————-
revision 1.7
date: 2015/06/26 12:00:16;  author: emblogic;  state: Exp;  lines: +7 -12
calling code length and array length from the main
as these is no need of code lenght and array length in main function.
—————————-
revision 1.6
date: 2015/06/26 10:24:13;  author: emblogic;  state: Exp;  lines: +1 -0
*** empty log message ***
—————————-
revision 1.5
date: 2015/06/26 09:16:10;  author: emblogic;  state: Exp;  lines: +1 -1
error removed
—————————-
revision 1.4
date: 2015/06/26 09:14:51;  author: emblogic;  state: Exp;  lines: +1 -1
error removed
—————————-
revision 1.3
date: 2015/06/26 09:13:23;  author: emblogic;  state: Exp;  lines: +1 -1
removed error
—————————-
revision 1.2
date: 2015/06/26 09:07:25;  author: emblogic;  state: Exp;  lines: +11 -3
edited program
—————————-
revision 1.1
date: 2015/06/26 08:45:32;  author: emblogic;  state: Exp;
Initial revision
=============================================================================

RCS file: compression2.c,v
Working file: compression2.c
head: 1.1
branch:
locks: strict
emblogic: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
printed compression2 file
—————————-
revision 1.1    locked by: emblogic;
date: 2015/06/27 06:22:23;  author: emblogic;  state: Exp;
Initial revision
=============================================================================

RCS file: compression3.c,v
Working file: compression3.c
head: 1.1
branch:
locks: strict
emblogic: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
printed compression3 file
—————————-
revision 1.1    locked by: emblogic;
date: 2015/06/27 06:22:39;  author: emblogic;  state: Exp;
Initial revision
=============================================================================

RCS file: compression4.c,v
Working file: compression4.c
head: 1.1
branch:
locks: strict
emblogic: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
printed compression4 file
—————————-
revision 1.1    locked by: emblogic;
date: 2015/06/27 06:22:55;  author: emblogic;  state: Exp;
Initial revision
=============================================================================

RCS file: compression5.c,v
Working file: compression5.c
head: 1.1
branch:
locks: strict
emblogic: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
printed compression 5 file
—————————-
revision 1.1    locked by: emblogic;
date: 2015/06/27 06:23:18;  author: emblogic;  state: Exp;
Initial revision
=============================================================================

RCS file: compression6.c,v
Working file: compression6.c
head: 1.1
branch:
locks: strict
emblogic: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
printed compression 6 file
—————————-
revision 1.1    locked by: emblogic;
date: 2015/06/27 06:23:33;  author: emblogic;  state: Exp;
Initial revision
=============================================================================

RCS file: compression7.c,v
Working file: compression7.c
head: 1.1
branch:
locks: strict
emblogic: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
printed compression 7 file
—————————-
revision 1.1    locked by: emblogic;
date: 2015/06/27 06:23:46;  author: emblogic;  state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Leave a comment

Mdc project prototypes created for various compression file

RCS file: header.h,v
Working file: header.h
head: 1.5
branch:
locks: strict
emblogic: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5; selected revisions: 5
description:
Header file and prototype for mdc project.
—————————-
revision 1.5 locked by: emblogic;
date: 2015/06/26 14:55:37; author: emblogic; state: Exp; lines: +8 -4
Headers is included.
So that multiple declaration creates no problem.
—————————-
revision 1.4
date: 2015/06/26 14:38:57; author: emblogic; state: Exp; lines: +0 -5
Prototype removed.
—————————-
revision 1.3
date: 2015/06/26 14:33:12; author: emblogic; state: Exp; lines: +2 -2
Added extern for external function.
—————————-
revision 1.2
date: 2015/06/25 19:24:13; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.1
date: 2015/06/25 19:20:46; author: emblogic; state: Exp;
Initial revision
– INSERT — 1,1 Top

Posted in Project 2: Multiple Data Compression and Encryption | Leave a comment

my_work_26

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
It contains the header file which have to be included in the source code before execution of the program.
—————————-
revision 1.1
date: 2015/06/26 12:36:45; author: ankit; state: Exp;
Initial revision
=============================================================================

RCS file: prototype.h,v
Working file: prototype.h
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
It contains different function declarations which are called in the main program.
—————————-
revision 1.1
date: 2015/06/26 12:36:45; author: ankit; state: Exp;
Initial revision
=============================================================================

RCS file: mdc.c,v
Working file: mdc.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
This set of codes will read the file as specified by the user.
It generates file named encryption_key which stores the unique characters of the source file.
It counts the number of character in the encryption key and finds the required length of the code of every character in the encryption key.
—————————-
revision 1.1
date: 2015/06/26 12:30:18; author: ankit; state: Exp;
Initial revision
=============================================================================

RCS file: encryption.c,v
Working file: encryption.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
This set of codes will receive the number code lenths and the encryption key characters.
And it will switch the program control to the required encryption function according to the code length of the character.
—————————-
revision 1.1
date: 2015/06/26 12:30:18; author: ankit; state: Exp;
Initial revision
=============================================================================

RCS file: encryption1.c,v
Working file: encryption1.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
It contains the encryption function to encrypt the data of the code length 1.
—————————-
revision 1.1
date: 2015/06/26 12:30:18; author: ankit; state: Exp;
Initial revision
=============================================================================

RCS file: encryption2.c,v
Working file: encryption2.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
It contains the encryption function to encrypt the data of the code length 2.
—————————-
revision 1.1
date: 2015/06/26 12:30:18; author: ankit; state: Exp;
Initial revision
=============================================================================

RCS file: encryption3.c,v
Working file: encryption3.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
It contains the encryption function to encrypt the data of the code length 3.
—————————-
revision 1.1
date: 2015/06/26 12:30:18; author: ankit; state: Exp;
Initial revision
=============================================================================

RCS file: encryption4.c,v
Working file: encryption4.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
It contains the encryption function to encrypt the data of the code length 4.
It reads the data from the source file and compresses it to 50% of its original size.
—————————-
revision 1.1
date: 2015/06/26 12:30:18; author: ankit; state: Exp;
Initial revision
=============================================================================

RCS file: encryption5.c,v
Working file: encryption5.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
It contains the encryption function to encrypt the data of the code length 5.
—————————-
revision 1.1
date: 2015/06/26 12:30:18; author: ankit; state: Exp;
Initial revision
=============================================================================

RCS file: encryption6.c,v
Working file: encryption6.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
It contains the encryption function to encrypt the data of the code length 6.
—————————-
revision 1.1
date: 2015/06/26 12:30:18; author: ankit; state: Exp;
Initial revision
=============================================================================

RCS file: encryption7.c,v
Working file: encryption7.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
It contains the encryption function to encrypt the data of the code length 7.
—————————-
revision 1.1
date: 2015/06/26 12:30:18; author: ankit; state: Exp;
Initial revision
=============================================================================

RCS file: encryption8.c,v
Working file: encryption8.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
It contains the encryption function to encrypt the data of the code length 8.
—————————-
revision 1.1
date: 2015/06/26 12:30:18; author: ankit; state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Leave a comment

mdc

RCS file: compression.c,v
Working file: compression.c
head: 1.6
branch:
locks: strict
root: 1.6
access list:
symbolic names:
keyword substitution: kv
total revisions: 6;    selected revisions: 6
description:
this is the compression file which work to compress the code
—————————-
revision 1.6    locked by: root;
date: 2015/06/26 11:25:06;  author: root;  state: Exp;  lines: +1 -1
initilise i variable
—————————-
revision 1.5
date: 2015/06/26 11:23:53;  author: root;  state: Exp;  lines: +4 -0
addind a count file
—————————-
revision 1.4
date: 2015/06/26 11:03:50;  author: root;  state: Exp;  lines: +1 -1
just.
—————————-
revision 1.3
date: 2015/06/26 10:40:36;  author: root;  state: Exp;  lines: +1 -1
removing error of header file
—————————-
revision 1.2
date: 2015/06/26 10:18:49;  author: root;  state: Exp;  lines: +0 -1
correctimg the error
—————————-
revision 1.1
date: 2015/06/26 10:12:36;  author: root;  state: Exp;
Initial revision
=============================================================================
RCS file: low_store.c,v
Working file: low_store.c
head: 1.4
branch:
locks: strict
root: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4;    selected revisions: 4
description:
master array creation
—————————-
revision 1.4    locked by: root;
date: 2015/06/26 10:39:57;  author: root;  state: Exp;  lines: +1 -1
removing error of header file
—————————-
revision 1.3
date: 2015/06/26 10:34:25;  author: root;  state: Exp;  lines: +1 -8
only one change i.e header file
—————————-
revision 1.2
date: 2015/06/25 13:05:12;  author: root;  state: Exp;  lines: +10 -8
now spliting of files and creation of new files
—————————-
revision 1.1
date: 2015/06/25 11:34:17;  author: root;  state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Leave a comment

MDCEIT

RCS file: mdc_realloc_main.c,v
Working file: mdc_realloc_main.c
head: 1.4
branch:
locks: strict
emblogic: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4;    selected revisions: 4
description:
create file
created master array using realloc
save master array
—————————-
revision 1.4    locked by: emblogic;
date: 2015/06/26 09:11:23;  author: emblogic;  state: Exp;  lines: +5 -4
called compression in main
—————————-
revision 1.3
date: 2015/06/26 08:51:23;  author: emblogic;  state: Exp;  lines: +1 -0
called compression function
—————————-
revision 1.2
date: 2015/06/26 08:33:58;  author: emblogic;  state: Exp;  lines: +1 -8
created header file seperately
deleted headers in this file
called header using include header.h
—————————-
revision 1.1
date: 2015/06/26 08:28:01;  author: emblogic;  state: Exp;
Initial revision

Posted in Uncategorized | Leave a comment

LOG FILE OF MDC AT CREATE THE COMPREES FILE

rlog mdc.c 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: read the content of file master array ha created code length has also found master array has saved in another file —————————- revision 1.3 locked by: root; date: 2015/06/25 17:25:42; author: root; state: Exp; lines: +3 -9 create a compress file created a header file “header.h” included in main —————————- revision 1.2 date: 2015/06/25 14:44:12; author: root; state: Exp; lines: +1 -2 using realloc create the master array —————————- revision 1.1 date: 2015/06/25 14:32:21; author: root; state: Exp; Initial revision

Posted in Uncategorized | Leave a comment

POINTER

I knew the real definition of pointer . it is a variable that stores the logical address not physical address.

Posted in Uncategorized | Leave a comment

C and natural languages

 Learning C language is very analogous to learn our natural language. As we learn first of all the character set of a natural language, C has also its character set. Word is the meaningful combination of the characters, in C these are called identifiers. A meaningful collection of word is phrase, in C word is analogous to a expression. A set of phrases is called a sentence, in C sentence is called statement. The set of sentences creates a paragraph, and set of statements is called program. The set of programs is called software. Every language has its own grammer which must be followed to write anything in that language, so programming languages have also their own grammers for writting softwares.

Posted in Uncategorized | Leave a comment

My log

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
It contains the various headers files and different function calls which are used in the entire program.
—————————-
revision 1.1
date: 2015/06/25 17:34:43; author: ankit; state: Exp;
Initial revision
=============================================================================

RCS file: mdc.c,v
Working file: mdc.c
head: 1.2
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
This set of codes open the source to read the characters.
It counts the number of characters in the source file.
It generates the encryption key file containing the unique characters.
It calculates the length of the code(in bits).
We generates our own code for each character.
—————————-
revision 1.2
date: 2015/06/25 17:40:26; author: ankit; state: Exp; lines: +1 -0
A comment is added before the write_file() function definition.
—————————-
revision 1.1
date: 2015/06/25 17:23:36; author: ankit; state: Exp;
Initial revision
=============================================================================

RCS file: encp.c,v
Working file: encp.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
This set of codes reads the source and encryption_key files to read each character.
It generates the code for each character of the source file according to the index in the encryption key file.
Source file will be compressed and encrypted.
Compressed file will be stored in file ‘cfile’.
—————————-
revision 1.1
date: 2015/06/25 17:31:21; author: ankit; state: Exp;
Initial revision
=============================================================================

Posted in Project 2: Multiple Data Compression and Encryption | Leave a comment

RCS Log File

RCS file: mdc.c,v
Working file: mdc.c
head: 1.5
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 5; selected revisions: 5
description:
Unique Master Array is being created using functions and pointers
countred the codelength of the unique master array
saved the master array in a new file
—————————-
revision 1.5
date: 2015/06/25 17:04:13; author: root; state: Exp; lines: +0 -1
compress function is written in a file other than the main file
And Linked to the mdc.c file.
—————————-
revision 1.4
date: 2015/06/25 14:30:43; author: root; state: Exp; lines: +6 -11
created a new header file named header.h
header.h is included in the main using #include”header.h”
—————————-
revision 1.3
date: 2015/06/25 12:51:34; author: root; state: Exp; lines: +2 -2
Debugged the program using GDB Debugger
REemoved the segmentation fault
—————————-
revision 1.2
date: 2015/06/25 12:47:56; author: root; state: Exp; lines: +5 -3
Created unique master array using realloc
found out segmentation fault
—————————-
revision 1.1
date: 2015/06/25 10:06:14; author: root; state: Exp;
Initial revision

Posted in Project 2: Multiple Data Compression and Encryption, Uncategorized | Leave a comment

Mdceit project with RCS and multiple file declaration

RCS file: openfile_1.c,v
Working file: openfile_1.c
head: 1.4
branch:
locks: strict
eblogic: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 5;    selected revisions: 5
description:
Unique master array created using malloc
code length found using functions.
—————————-
revision 1.4    locked by: eblogic;
date: 2015/06/25 12:54:40;  author: eblogic;  state: Exp;  lines: +1 -21
split the file
create header.h file and place all header files from openfile_1 to header.h file
declare compression function definition in different file with name compression.c
In header.h file declare the compression function prototype as extern.
—————————-
revision 1.3
date: 2015/06/25 10:18:19;  author: eblogic;  state: Exp;  lines: +2 -2
Remove the malloc function and recreate the master array using realloc function.
—————————-
revision 1.2
date: 2015/06/25 09:25:21;  author: eblogic;  state: Exp;  lines: +1 -1
remove the comment from the malloc command
—————————-
revision 1.1
date: 2015/06/25 09:17:25;  author: eblogic;  state: Exp;
branches:  1.1.1;
Initial revision
—————————-
revision 1.1.1.1
date: 2015/06/25 12:01:33;  author: eblogic;  state: Exp;  lines: +1 -1
enter comment on already commented line

Posted in Uncategorized | Leave a comment

MDC project

RCS file: mdc.c,v
Working file: mdc.c
head: 1.3
branch:
locks: strict
emblogic: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
Created Masterarray.
Found the code length.
—————————-
revision 1.3 locked by: emblogic;
date: 2015/06/25 19:27:33; author: emblogic; state: Exp; lines: +1 -0
Compression() is added.
—————————-
revision 1.2
date: 2015/06/25 19:15:50; author: emblogic; state: Exp; lines: +1 -8
Header has been made.
Prototypes are present in other file.
—————————-
revision 1.1
date: 2015/06/25 19:06:16; author: emblogic; state: Exp;
Initial revision
=============================================================================
~
~
~
~
~
~
“rlogfile” 28L, 770C 1,0-1 All

RCS file: header.h,v
Working file: header.h
head: 1.2
branch:
locks: strict
emblogic: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
Header file and prototype for mdc project.
—————————-
revision 1.2 locked by: emblogic;
date: 2015/06/25 19:24:13; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.1
date: 2015/06/25 19:20:46; author: emblogic; state: Exp;
Initial revision
=============================================================================
~
~
~
~
~
~
~
~
~
~
~
~
“rlogfile” 22L, 602C 1,0-1 All

Posted in Data Structures with C | Leave a comment