RCS file: declerations.h,v
Working file: declerations.h
head: 1.3
branch:
locks: strict
root: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
declared init() and mainMenu()
declared function pointer to mainMenu();
----------------------------
revision 1.3 locked by: root;
date: 2019/03/07 09:28:26; author: root; state: Exp; lines: +2 -0
declared openFile()
----------------------------
revision 1.2
date: 2019/03/07 09:09:58; author: root; state: Exp; lines: +9 -0
declared function pointers fior all functions.
----------------------------
revision 1.1
date: 2019/03/05 09:13:20; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: headers.h,v
Working file: headers.h
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
included headers.h, stdlib.h, fcntl.h, unistd.h
----------------------------
revision 1.2 locked by: root;
date: 2019/03/07 09:30:53; author: root; state: Exp; lines: +1 -0
included string.h
----------------------------
revision 1.1
date: 2019/03/05 09:14:12; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: compression.c,v
Working file: compression.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 function will perform compression. Just checking mapping for now.
----------------------------
revision 1.3 locked by: root;
date: 2019/03/07 09:40:37; author: root; state: Exp; lines: +2 -1
Gets the returned file descriptor from openFile()
----------------------------
revision 1.2
date: 2019/03/07 09:28:37; author: root; state: Exp; lines: +2 -1
Askingthe user for failename to compress.
calling openFile() with mode for opening file.
----------------------------
revision 1.1
date: 2019/03/07 09:10:42; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: compressionStat.c,v
Working file: compressionStat.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 function would give compression statistice. Just checking mapping for now.
----------------------------
revision 1.1 locked by: root;
date: 2019/03/07 09:11:11; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: deCompression.c,v
Working file: deCompression.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 function will persorm decompression. Just checking mapping for now.
----------------------------
revision 1.1 locked by: root;
date: 2019/03/07 09:11:41; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: deCompressionStat.c,v
Working file: deCompressionStat.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 function would give decompression statistice. Just checking mapping for now.
----------------------------
revision 1.1 locked by: root;
date: 2019/03/07 09:11:55; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: init.c,v
Working file: init.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 function will initialize all function pointers.
Initialized function pointer for mainMenu()
----------------------------
revision 1.3 locked by: root;
date: 2019/03/07 09:29:23; author: root; state: Exp; lines: +1 -1
initialized openFile function pointer
----------------------------
revision 1.2
date: 2019/03/07 09:12:13; author: root; state: Exp; lines: +4 -0
Initialized function pointers for compression(), decompression(), compressionStat(), deCompressionStat()
----------------------------
revision 1.1
date: 2019/03/05 09:14:44; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: main.c,v
Working file: main.c
head: 1.4
branch:
locks: strict
root: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4; selected revisions: 4
description:
This is the main source file for Project.
Multiple Data Compression and Encryption using Iterative Technique.
Called init() to initialize function pointers.
----------------------------
revision 1.4 locked by: root;
date: 2019/03/07 09:13:03; author: root; state: Exp; lines: +4 -0
Calling appropriate function according to the choice
----------------------------
revision 1.3
date: 2019/03/05 09:35:53; author: root; state: Exp; lines: +1 -0
declared choice
----------------------------
revision 1.2
date: 2019/03/05 09:27:40; author: root; state: Exp; lines: +22 -0
Called mainMenu() and obtained choice.
switch depending on choice.
implemented exit and default choice for npw.
----------------------------
revision 1.1
date: 2019/03/05 09:15:44; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: mainMenu.c,v
Working file: mainMenu.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
mainMenu() is going to display Main Menu.
----------------------------
revision 1.2 locked by: root;
date: 2019/03/05 09:28:54; author: root; state: Exp; lines: +19 -4
Displayed main manu.
Implemented logic to handle invalid choice such that...
the function will keep on iterating through the menu and displaying it until correct choice is entered.
it returns the correct choice
----------------------------
revision 1.1
date: 2019/03/05 09:16:45; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: openFile.c,v
Working file: openFile.c
head: 1.8
branch:
locks: strict
root: 1.8
access list:
symbolic names:
keyword substitution: kv
total revisions: 8; selected revisions: 8
description:
Allocated space for filename.
takes filename from user using fgets()
printing filename
----------------------------
revision 1.8 locked by: root;
date: 2019/03/07 09:41:54; author: root; state: Exp; lines: +1 -1
declared fd
----------------------------
revision 1.7
date: 2019/03/07 09:40:52; author: root; state: Exp; lines: +10 -3
Opens the file according to the appropriate mode.
the file open mode is checked using strncme()
returns the file descritor
----------------------------
revision 1.6
date: 2019/03/07 09:37:52; author: root; state: Exp; lines: +3 -1
Discarding '\n' from the input
----------------------------
revision 1.5
date: 2019/03/07 09:36:29; author: root; state: Exp; lines: +1 -0
Priting strlen of filename
----------------------------
revision 1.4
date: 2019/03/07 09:34:51; author: root; state: Exp; lines: +1 -0
Applied extragetchar() before red loop
----------------------------
revision 1.3
date: 2019/03/07 09:33:20; author: root; state: Exp; lines: +1 -1
typo
----------------------------
revision 1.2
date: 2019/03/07 09:32:44; author: root; state: Exp; lines: +8 -1
getting the filename from user using getchar()
----------------------------
revision 1.1
date: 2019/03/07 09:29:47; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: declerations.h,v
Working file: declerations.h
head: 1.1
branch:
locks: strict
ajay: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
declare init()
declare mainmenu()
declare compression()
declare compressionstat()
declare deccompression()
declare decompressionstat()
declare creartemasterarray()
declare unique array()
declare countlen()
declare openfile()
----------------------------
revision 1.1 locked by: ajay;
date: 2019/03/11 06:48:33; author: ajay; state: Exp;
Initial revision
=============================================================================
RCS file: headers.h,v
Working file: headers.h
head: 1.1
branch:
locks: strict
ajay: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
include headerfile stdio.h
include headerfile stdlib.h
include headerfile unistd.h
include headerfile fnctl.h
include headerfile string.h
----------------------------
revision 1.1 locked by: ajay;
date: 2019/03/11 06:52:28; author: ajay; state: Exp;
Initial revision
=============================================================================
RCS file: compression.c,v
Working file: compression.c
head: 1.1
branch:
locks: strict
ajay: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
declare intger variable
call open file function
call create master array function
call countlength function
print file descriptor
print master array
print len of the array
----------------------------
revision 1.1 locked by: ajay;
date: 2019/03/11 06:55:16; author: ajay; state: Exp;
Initial revision
=============================================================================
RCS file: compressionstat.c,v
Working file: compressionstat.c
head: 1.1
branch:
locks: strict
ajay: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
----------------------------
revision 1.1 locked by: ajay;
date: 2019/03/11 06:59:12; author: ajay; state: Exp;
Initial revision
RCS file: countlen.c,v
Working file: countlen.c
head: 1.1
branch:
locks: strict
ajay: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
evalute len of the master array with the help of else if ladder
return len length of master array
----------------------------
revision 1.1 locked by: ajay;
date: 2019/03/11 06:59:19; author: ajay; state: Exp;
Initial revision
=============================================================================
RCS file: creatmasterarr.c,v
Working file: creatmasterarr.c
head: 1.1
branch:
locks: strict
ajay: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
find length of the file using lseek function
and start while loop
throgh read function read character by character from file
call unique array function in while loop
----------------------------
revision 1.1 locked by: ajay;
ate: 2019/03/11 07:03:03; author: ajay; state: Exp;
pre { background: transparent none repeat scroll 0% 0%; }pre.western { font-family: "Liberation Mono", monospace; font-size: 10pt; }pre.cjk { font-family: "Source Han Sans CN", monospace; font-size: 10pt; }pre.ctl { font-family: "Liberation Mono", monospace; font-size: 10pt; }p { margin-bottom: 0.25cm; line-height: 115%; background: transparent pre { background: transparent none repeat scroll 0% 0%; }pre.western { font-family: "Liberation Mono", monospace; font-size: 10pt; }pre.cjk { font-family: "Source Han Sans CN", monospace; font-size: 10pt; }pre.ctl { font-family: "Liberation Mono", monospace; font-size: 10pt; }p { margin-bottom: 0.25cm; line-height: 115%; background: transparent none repeat scroll 0% 0%; }
RCS file: declaration.h,v
Working file: declaration.h
head: 1.1
branch:
locks: strict
tkushwaha: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
declared init() and mainMenu()
declared function pointer to mainMenu();
declare compression() decompression()
----------------------------
revision 1.1 locked by: tkushwaha;
date: 2019/03/11 06:39:26; author: tkushwaha; state: Exp;
Initial revision
=============================================================================
RCS file: headers.h,v
Working file: headers.h
head: 1.1
branch:
locks: strict
tkushwaha: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description: declare headers file stdio.h
stdlib.h
----------------------------
revision 1.1 locked by: tkushwaha;
date: 2019/03/11 06:39:30; author: tkushwaha; state: Exp;
Initial revision
=============================================================================
RCS file: compression.c,v
Working file: compression.c
head: 1.2
branch:
locks: strict
tkushwaha: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:This function will perform compression
asking user for filename to compress openfile() with mode for opening file
----------------------------
revision 1.2 locked by: tkushwaha;
date: 2019/03/11 07:21:45; author: tkushwaha; state: Exp; lines: +1 -0
*** empty log message ***
----------------------------
revision 1.1
date: 2019/03/11 06:39:31; author: tkushwaha; state: Exp;
Initial revision
=============================================================================
RCS file: compressionstatics.c,v
Working file: compressionstatics.c
head: 1.1
branch:
locks: strict
tkushwaha: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description: this function would give compression statics just checking mapping for now
----------------------------
revision 1.1 locked by: tkushwaha;
date: 2019/03/11 06:39:31; author: tkushwaha; state: Exp;
Initial revision
=============================================================================
RCS file: decompression.c,v
Working file: decompression.c
head: 1.1
branch:
locks: strict
tkushwaha: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
----------------------------
revision 1.1 locked by: tkushwaha;
date: 2019/03/11 06:39:32; author: tkushwaha; state: Exp;
Initial revision
=============================================================================
RCS file: decompressionstatics.c,v
Working file: decompressionstatics.c
head: 1.1
branch:
locks: strict
tkushwaha: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
----------------------------
revision 1.1 locked by: tkushwaha;
date: 2019/03/11 06:39:33; author: tkushwaha; state: Exp;
Initial revision
=============================================================================
RCS file: init.c,v
Working file: init.c
head: 1.1
branch:
locks: strict
tkushwaha: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description: it will initialise all the function pointer such as function pointer save the address of function
----------------------------
revision 1.1 locked by: tkushwaha;
date: 2019/03/11 06:39:33; author: tkushwaha; state: Exp;
Initial revision
=============================================================================
RCS file: main.c,v
Working file: main.c
head: 1.1
branch:
locks: strict
tkushwaha: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:calling init function
it is the main source file for project
the choice from mainmenu() return to main function and pointer point the function according to choice from user..
----------------------------
revision 1.1 locked by: tkushwaha;
date: 2019/03/11 06:39:34; author: tkushwaha; state: Exp;
Initial revision
=============================================================================
RCS file: mainmenu.c,v
Working file: mainmenu.c
head: 1.1
branch:
locks: strict
tkushwaha: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description: the mainmenu() takes choice from user as compression decompression ets...and returns the choice to main function
----------------------------
revision 1.1 locked by: tkushwaha;
date: 2019/03/11 06:39:34; author: tkushwaha; state: Exp;
Initial revision
=============================================================================
RCS file: masterarray.c,v
Working file: masterarray.c
head: 1.1
branch:
locks: strict
tkushwaha: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description: this function would list unique character from the file into master array
then return the master array first
then return the master array
----------------------------
revision 1.1 locked by: tkushwaha;
date: 2019/03/11 06:39:35; author: tkushwaha; state: Exp;
Initial revision
=============================================================================
RCS file: openfile.c,v
Working file: openfile.c
head: 1.1
branch:
locks: strict
tkushwaha: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description: allocate space for filename
getting the filename from user
----------------------------
revision 1.1 locked by: tkushwaha;
date: 2019/03/11 06:39:36; author: tkushwaha; state: Exp;
Initial revision
declaration.h,v
headers.h,v
codelength.c,v
compression.c,v
compressionStatics.c,v
creatmasterarr.c,v
decompression.c,v
decompressionStatics.c,v
init.c,v
main.c,v
mainMenu.c,v
openfile.c,v
unique.c,v
RCS file: declaration.h,v
Working file: declaration.h
head: 1.1
branch:
locks: strict
kuldeep: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
included headers.h,stdlib.h fcntl.h,unistd.h,string.h .
declared function pointer for all function.
declared openfile().
declared creatmasterarr(),unique().
declarared codelength().
----------------------------
revision 1.1 locked by: kuldeep;
date: 2019/03/14 06:49:20; author: kuldeep; state: Exp;
Initial revision
=============================================================================
RCS file: headers.h,v
Working file: headers.h
head: 1.1
branch:
locks: strict
kuldeep: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
include stdio.h stdlib.h unistd.h fcntl.h
----------------------------
revision 1.1 locked by: kuldeep;
date: 2019/03/14 06:54:47; author: kuldeep; state: Exp;
Initial revision
=============================================================================
RCS file: codelength.c,v
Working file: codelength.c
head: 1.1
branch:
locks: strict
kuldeep: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
code length of the unique character in the master array.
----------------------------
revision 1.1 locked by: kuldeep;
date: 2019/03/14 06:56:33; author: kuldeep; state: Exp;
Initial revision
=============================================================================
RCS file: compression.c,v
Working file: compression.c
head: 1.1
branch:
locks: strict
kuldeep: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
this function will perform compression just checking mapping for now .
asking the user for filename to compress.
calling open file() with mode for open file.
gets the return file descripter.
called creatmaserarr() and obtained masterarr.
printing master arr.
----------------------------
revision 1.1 locked by: kuldeep;
date: 2019/03/14 06:58:05; author: kuldeep; state: Exp;
Initial revision
=============================================================================
RCS file: compressionStatics.c,v
Working file: compressionStatics.c
head: 1.1
branch:
locks: strict
kuldeep: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
----------------------------
revision 1.1 locked by: kuldeep;
date: 2019/03/14 07:01:26; author: kuldeep; state: Exp;
Initial revision
=============================================================================
RCS file: creatmasterarr.c,v
Working file: creatmasterarr.c
head: 1.1
branch:
locks: strict
kuldeep: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
this func would list unique charcter from the file into a master array.
then return the master array.
first found the sizeof file using unique lseek()
read character from this file one by one in while loop
found the uniqueness of the charcter in the array using unique()
if found unique them character is listed in the masterarray.
the array grow using realloc .
decrementing the size.
----------------------------
revision 1.1 locked by: kuldeep;
date: 2019/03/14 07:01:32; author: kuldeep; state: Exp;
Initial revision
=============================================================================
RCS file: decompression.c,v
Working file: decompression.c
head: 1.1
branch:
locks: strict
kuldeep: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
----------------------------
revision 1.1 locked by: kuldeep;
date: 2019/03/14 07:06:15; author: kuldeep; state: Exp;
Initial revision
=============================================================================
RCS file: decompressionStatics.c,v
Working file: decompressionStatics.c
head: 1.1
branch:
locks: strict
kuldeep: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
----------------------------
revision 1.1 locked by: kuldeep;
date: 2019/03/14 07:06:24; author: kuldeep; state: Exp;
Initial revision
=============================================================================
RCS file: init.c,v
Working file: init.c
head: 1.1
branch:
locks: strict
kuldeep: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
this function will initialize all function pointers.
initialized function pointer for mainMenu()
initialized func poiinter for compression()
decompression(),compressionstat(),decompressionstat().
initialized openfile func pointer.
----------------------------
revision 1.1 locked by: kuldeep;
date: 2019/03/14 07:06:35; author: kuldeep; state: Exp;
Initial revision
=============================================================================
RCS file: main.c,v
Working file: main.c
head: 1.1
branch:
locks: strict
kuldeep: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
this is the mainsource file for project.
multiple data c and encryption using iterative technique.
called init() to initialize func.
called mainmenu and obtainedchoice
switch depending on choice
implemented exit and default choice for now
calling appropriate function acc to choice.
----------------------------
revision 1.1 locked by: kuldeep;
date: 2019/03/14 07:09:28; author: kuldeep; state: Exp;
Initial revision
=============================================================================
RCS file: mainMenu.c,v
Working file: mainMenu.c
head: 1.1
branch:
locks: strict
kuldeep: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
displayed mainMenu.
implemented exit and default choice for now.
calling appropriate function according to choice.
----------------------------
revision 1.1 locked by: kuldeep;
date: 2019/03/14 08:46:34; author: kuldeep; state: Exp;
Initial revision
=============================================================================
RCS file: openfile.c,v
Working file: openfile.c
head: 1.1
branch:
locks: strict
kuldeep: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
file open mode.
allocated space for filename
getting the filename from user using getchar()
applied extra getchar() before loop.
open the file according to the appropriate mode
the file mode is checked using strncmp
----------------------------
revision 1.1 locked by: kuldeep;
date: 2019/03/14 09:00:01; author: kuldeep; state: Exp;
Initial revision
=============================================================================
It looks like you're new here. If you want to get involved, click one of these buttons!