RCS file: declerations.h,v
Working file: declerations.h
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
This header file should keep all declerations and function prototypes.
Declared mainMenu(), compression() deCompression(), compressionStats(), deCompressionStats(), fileOPen() and createMasterArray()
----------------------------
revision 1.2 locked by: root;
date: 2019/05/04 11:44:00; author: root; state: Exp; lines: +1 -0
declared unique()
----------------------------
revision 1.1
date: 2019/05/04 11:18:16; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: headers.h,v
Working file: headers.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 header file keeps all include files and macros(if any)
included stdio.h, stdlib.h unistd.h, fcntl.h , string.h
----------------------------
revision 1.1 locked by: root;
date: 2019/05/04 11:19:45; author: root; state: Exp;
Initial revision
=============================================================================
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 the main compression function.
Calls the openFile() and gets file descriptor of the file to compress.
Then calls createMNasterArray() to determine uniquecharacters in the file
----------------------------
revision 1.1 locked by: root;
date: 2019/05/04 11:20:36; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: compressionStats.c,v
Working file: compressionStats.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 statistics
Just checking mapping for now
----------------------------
revision 1.1 locked by: root;
date: 2019/05/04 11:21:41; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: createMasterArray.c,v
Working file: createMasterArray.c
head: 1.4
branch:
locks: strict
root: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4; selected revisions: 4
description:
This function would deterdetermine uniquecharacters in the file
Checks file size using lseek().
Then goes into while() reads charcters one-by-one
for now just displays characters read from file
----------------------------
revision 1.4 locked by: root;
date: 2019/05/04 11:45:55; author: root; state: Exp; lines: +1 -1
typo
----------------------------
revision 1.3
date: 2019/05/04 11:44:08; author: root; state: Exp; lines: +2 -1
calling unique() to determine uniqueness of the character.
If unique then store in the masterarray
else discard
----------------------------
revision 1.2
date: 2019/05/04 11:37:03; author: root; state: Exp; lines: +7 -4
Storing the characters read from file into master array.
Displaying the master array
----------------------------
revision 1.1
date: 2019/05/04 11:22:09; 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 would perform deCompression ater
Just checking mapping for now
----------------------------
revision 1.1 locked by: root;
date: 2019/05/04 11:23:16; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: deCompressionStats.c,v
Working file: deCompressionStats.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 Statistics
Just checking mapping for now
----------------------------
revision 1.1 locked by: root;
date: 2019/05/04 11:23:46; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: fileOpen.c,v
Working file: fileOpen.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
Allocated space for filename.
Obtained filename from user for the file to compress.
Obtained file open mode from the user.
Opened the file in appropriate mode and got the file descriptor
returned file descriptor to calling function
----------------------------
revision 1.1 locked by: root;
date: 2019/05/04 11:24:10; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: main.c,v
Working file: main.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 the main() for Project
Multiple Data Compression and Encryption usinf Iterativ Technique
Called mainMenu() and get the choice
Called appropriate function()/action depending on choice using switch
----------------------------
revision 1.1 locked by: root;
date: 2019/05/04 11:27:08; 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:
Displayc Main Menu, gets choice from user, returns choice
----------------------------
revision 1.1 locked by: root;
date: 2019/05/04 11:28:42; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: unique.c,v
Working file: unique.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
The function takes masterarray and character in question as argument
looks for the character in the master array
if found then returns 0 else 1
----------------------------
revision 1.2 locked by: root;
date: 2019/05/04 11:46:25; author: root; state: Exp; lines: +1 -1
typo
----------------------------
revision 1.1
date: 2019/05/04 11:44:51; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: headers.h,v
Working file: headers.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 header file will contain all the include header files
included
stdio.h and stdlib.h
----------------------------
revision 1.3 locked by: root;
date: 2019/06/30 07:00:21; author: root; state: Exp; lines: +1 -0
included string.h
----------------------------
revision 1.2
date: 2019/06/30 06:26:13; author: root; state: Exp; lines: +2 -0
included fcntl.h and unistd.h
for fileio
----------------------------
revision 1.1
date: 2019/06/29 06:15:25; 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:
This header file should contain all declerations
declared mainMenu()
----------------------------
revision 1.3 locked by: root;
date: 2019/06/30 06:57:39; author: root; state: Exp; lines: +1 -0
declared fileOpen()
----------------------------
revision 1.2
date: 2019/06/29 06:30:04; author: root; state: Exp; lines: +4 -1
declared compression(), deCompression(), compressionStats(), deCompressionStats()
----------------------------
revision 1.1
date: 2019/06/29 06:16:06; 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 is going to do compression.
Just Checking Mapping
----------------------------
revision 1.3 locked by: root;
date: 2019/06/30 06:58:00; author: root; state: Exp; lines: +2 -6
opening the file and getting file descriptor using fileOpen()
----------------------------
revision 1.2
date: 2019/06/30 06:23:34; author: root; state: Exp; lines: +9 -0
opening the file for compression. using open()
printing the obtained file descriptor.
----------------------------
revision 1.1
date: 2019/06/29 06:31:25; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: compressionStats.c,v
Working file: compressionStats.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 is going to give compressionStats
Just Checking Mapping
----------------------------
revision 1.1 locked by: root;
date: 2019/06/29 06:31:48; 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 is going to do decompression
Just Checking Mapping
----------------------------
revision 1.1 locked by: root;
date: 2019/06/29 06:32:25; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: deCompressionStats.c,v
Working file: deCompressionStats.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 is going to give decompression stats
Just Checking Mapping
----------------------------
revision 1.1 locked by: root;
date: 2019/06/29 06:32:46; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: fileOpen.c,v
Working file: fileOpen.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
It allocated space for filename.
gets filename from user.
checks the file open mode
using strncmp()
opens the file in appropriate mode
checks errors
if not... returns file decsriptor.
----------------------------
revision 1.1 locked by: root;
date: 2019/06/30 06:58:24; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: main.c,v
Working file: main.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
This is the main source file for Project.
called the mainMenu() and printed choice.
----------------------------
revision 1.2 locked by: root;
date: 2019/06/29 06:33:06; author: root; state: Exp; lines: +25 -2
calling mainMenu() in loop so that it gets displayed after avery input
the program now exits upon giving 0 as input
It now calls appropriate functions according to given choice
----------------------------
revision 1.1
date: 2019/06/29 06:16:41; 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 function prints the main menu , gets choice from user and
returnc choice.
----------------------------
revision 1.1 locked by: root;
date: 2019/06/29 06:17:24; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: headers.h,v
Working file: headers.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 header file will contain all the include header files
included
stdio.h and stdlib.h
----------------------------
revision 1.3 locked by: root;
date: 2019/06/30 07:00:21; author: root; state: Exp; lines: +1 -0
included string.h
----------------------------
revision 1.2
date: 2019/06/30 06:26:13; author: root; state: Exp; lines: +2 -0
included fcntl.h and unistd.h
for fileio
----------------------------
revision 1.1
date: 2019/06/29 06:15:25; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: prototypes.h,v
Working file: prototypes.h
head: 1.5
branch:
locks: strict
root: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5; selected revisions: 5
description:
This header file should contain all declerations
declared mainMenu()
----------------------------
revision 1.5 locked by: root;
date: 2019/07/13 05:51:05; author: root; state: Exp; lines: +1 -0
declared createMasterArray()
----------------------------
revision 1.4
date: 2019/07/13 05:18:35; author: root; state: Exp; lines: +1 -0
declared exitProg()
----------------------------
revision 1.3
date: 2019/06/30 06:57:39; author: root; state: Exp; lines: +1 -0
declared fileOpen()
----------------------------
revision 1.2
date: 2019/06/29 06:30:04; author: root; state: Exp; lines: +4 -1
declared compression(), deCompression(), compressionStats(), deCompressionStats()
----------------------------
revision 1.1
date: 2019/06/29 06:16:06; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: compression.c,v
Working file: compression.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 function is going to do compression.
Just Checking Mapping
----------------------------
revision 1.4 locked by: root;
date: 2019/07/13 05:51:16; author: root; state: Exp; lines: +3 -0
callingcreateMasterArray() and getting the masterarray
----------------------------
revision 1.3
date: 2019/06/30 06:58:00; author: root; state: Exp; lines: +2 -6
opening the file and getting file descriptor using fileOpen()
----------------------------
revision 1.2
date: 2019/06/30 06:23:34; author: root; state: Exp; lines: +9 -0
opening the file for compression. using open()
printing the obtained file descriptor.
----------------------------
revision 1.1
date: 2019/06/29 06:31:25; author: root; state: Exp;
Initial revision
=============================================================================
@page { margin: 0.79in }
pre.cjk { font-family: "DejaVu Sans Mono", monospace }
p { margin-bottom: 0.1in; line-height: 120% }
RCS file: createMasterArray.c,v
Working file: createMasterArray.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
Takes opened fd as argument
reads chars from the file one by one, allocates space for theses chars using realloc().
return the master array
----------------------------
revision 1.1 locked by: root;
date: 2019/07/13 05:51:35; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: exitProg.c,v
Working file: exitProg.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
Gets the mode as argument
checks the mode using strncmp()
opens file according to mode
returns file descriptor
----------------------------
revision 1.1 locked by: root;
date: 2019/07/13 05:21:51; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: fileOpen.c,v
Working file: fileOpen.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
It allocated space for filename.
gets filename from user.
checks the file open mode
using strncmp()
opens the file in appropriate mode
checks errors
if not... returns file decsriptor.
----------------------------
revision 1.2 locked by: root;
date: 2019/07/13 05:18:47; author: root; state: Exp; lines: +2 -0
Displaying the file descriptor before return
----------------------------
revision 1.1
date: 2019/06/30 06:58:24; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: main.c,v
Working file: main.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 the main source file for Project.
called the mainMenu() and printed choice.
----------------------------
revision 1.3 locked by: root;
date: 2019/07/13 05:19:12; author: root; state: Exp; lines: +1 -1
calling exitProg()
----------------------------
revision 1.2
date: 2019/06/29 06:33:06; author: root; state: Exp; lines: +25 -2
calling mainMenu() in loop so that it gets displayed after avery input
the program now exits upon giving 0 as input
It now calls appropriate functions according to given choice
----------------------------
revision 1.1
date: 2019/06/29 06:16:41; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: declerations.h,v
Working file: declerations.h
head: 1.8
branch:
locks: strict
root: 1.8
access list:
symbolic names:
keyword substitution: kv
total revisions: 8; selected revisions: 8
description:
This headers file would contain all the declerations.
declared mainMenu()
----------------------------
revision 1.8 locked by: root;
date: 2019/09/06 06:03:08; author: root; state: Exp; lines: +1 -0
declared unique()
----------------------------
revision 1.7
date: 2019/09/05 11:36:06; author: root; state: Exp; lines: +1 -0
declared codeLength.o
----------------------------
revision 1.6
date: 2019/09/05 11:30:43; author: root; state: Exp; lines: +1 -1
Modified the prototype for creatMasterArray()
\.
----------------------------
revision 1.5
date: 2019/09/05 11:22:30; author: root; state: Exp; lines: +1 -0
declared createMasterArray()
----------------------------
revision 1.4
date: 2019/09/02 07:59:29; author: root; state: Exp; lines: +1 -0
declared openFile()
----------------------------
revision 1.3
date: 2019/09/02 07:47:41; author: root; state: Exp; lines: +1 -1
typo
----------------------------
revision 1.2
date: 2019/09/02 07:42:46; author: root; state: Exp; lines: +4 -0
declared functions.
int compressFile();
int cdeCompressionStatsompressionStats();
int deCompressFile();
deCompressionStats()
----------------------------
revision 1.1
date: 2019/08/27 07:31:39; 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:
This header file would contain all the include header files.
included stdio.h, stdlib.h fcntl.h unistd.h
----------------------------
revision 1.2 locked by: root;
date: 2019/09/05 11:37:29; author: root; state: Exp; lines: +1 -0
included string.h
----------------------------
revision 1.1
date: 2019/08/27 07:31:25; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: codeLength.c,v
Working file: codeLength.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
it takes masterarray as argument
finds its length
then returns codelength accordingly
----------------------------
revision 1.1 locked by: root;
date: 2019/09/05 11:36:18; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: compressFile.c,v
Working file: compressFile.c
head: 1.7
branch:
locks: strict
root: 1.7
access list:
symbolic names:
keyword substitution: kv
total revisions: 7; selected revisions: 7
description:
Testting the mapping.
----------------------------
revision 1.7 locked by: root;
date: 2019/09/05 11:36:51; author: root; state: Exp; lines: +3 -1
Determines and prints code Length using codeLength()
----------------------------
revision 1.6
date: 2019/09/05 11:31:02; author: root; state: Exp; lines: +3 -1
Getting the return from createMasterArray(), it is the masterarray itself.
Printing it.
----------------------------
revision 1.5
date: 2019/09/05 11:25:06; author: root; state: Exp; lines: +1 -1
typo
----------------------------
revision 1.4
date: 2019/09/05 11:22:42; author: root; state: Exp; lines: +1 -0
caling the createMasterArray()
----------------------------
revision 1.3
date: 2019/09/02 08:03:43; author: root; state: Exp; lines: +2 -1
collecting fd from openFile()
----------------------------
revision 1.2
date: 2019/09/02 07:59:37; author: root; state: Exp; lines: +2 -0
prompting the user to give the name of file to compress
calling openFile() for the same
----------------------------
revision 1.1
date: 2019/09/02 07:43:43; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: compressionStats.c,v
Working file: compressionStats.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
Testting the mapping.
----------------------------
revision 1.1 locked by: root;
date: 2019/09/02 07:45:34; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: createMasterArray.c,v
Working file: createMasterArray.c
head: 1.7
branch:
locks: strict
root: 1.7
access list:
symbolic names:
keyword substitution: kv
total revisions: 7; selected revisions: 7
description:
It takes an open file descriptor as argument and reads charcters from the file one-by-one.
stored these characters in an array which was allocated in the beginning
prints the master array
----------------------------
revision 1.7 locked by: root;
date: 2019/09/06 06:04:02; author: root; state: Exp; lines: +11 -7
called unique() to determine if the character in question is unique.
if so then it is added to master array
----------------------------
revision 1.6
date: 2019/09/05 11:31:34; author: root; state: Exp; lines: +2 -3
returning masterarray
updated function return type accordingly
----------------------------
revision 1.5
date: 2019/09/05 11:28:31; author: root; state: Exp; lines: +1 -1
dealing with end of file char
stored '\0' at the last -1 location
\.
----------------------------
revision 1.4
date: 2019/09/05 11:27:10; author: root; state: Exp; lines: +1 -1
typo
----------------------------
revision 1.3
date: 2019/09/05 11:26:36; author: root; state: Exp; lines: +1 -0
Stored '\0' at the end of master array
----------------------------
revision 1.2
date: 2019/09/05 11:24:34; author: root; state: Exp; lines: +2 -2
typo
----------------------------
revision 1.1
date: 2019/09/05 11:22:56; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: deCompressFile.c,v
Working file: deCompressFile.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
Testting the mapping.
----------------------------
revision 1.1 locked by: root;
date: 2019/09/02 07:45:37; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: deCompressionStats.c,v
Working file: deCompressionStats.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
Testting the mapping.
----------------------------
revision 1.1 locked by: root;
date: 2019/09/02 07:45:39; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: main.c,v
Working file: main.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 the main() Source file for project
Multiple Data Compression and Encryption using Iterative Technique
Calling mainMenu()
----------------------------
revision 1.3 locked by: root;
date: 2019/09/02 08:00:16; author: root; state: Exp; lines: +1 -0
*** empty log message ***
----------------------------
revision 1.2
date: 2019/09/02 07:45:42; author: root; state: Exp; lines: +26 -1
calling mainMenu() in infinite Loop.
----------------------------
revision 1.1
date: 2019/08/27 07:31:43; 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:
This function would display main menu.
----------------------------
revision 1.2 locked by: root;
date: 2019/09/02 07:45:58; author: root; state: Exp; lines: +13 -3
Listed the whole menu.
getting choice from the user and returning it to the main()
----------------------------
revision 1.1
date: 2019/08/27 07:31:47; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: openFile.c,v
Working file: openFile.c
head: 1.3
branch:
locks: strict
root: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
Allocating space for file name
displaying the filename
----------------------------
revision 1.3 locked by: root;
date: 2019/09/02 08:03:54; author: root; state: Exp; lines: +9 -1
opening file to compress. Getting fd printing it and returning.
----------------------------
revision 1.2
date: 2019/09/02 08:01:30; author: root; state: Exp; lines: +1 -1
typo
----------------------------
revision 1.1
date: 2019/09/02 08:00:19; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: unique.c,v
Working file: unique.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
it takes character, masterarray and its length as arguments.
if length is 0, then it returns 1
otherwise finds the character in master array,
if not found then, returns 0 else returns 1
----------------------------
revision 1.1 locked by: root;
date: 2019/09/06 06:04:41; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: declerations.h,v
Working file: declerations.h
head: 1.4
branch:
locks: strict
root: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4; selected revisions: 4
description:
This file contains all function declerations/prototypes.
declared mainMenu(). exitFunc(), compression(). deCompression(), compressionStats() and deCompressionStats()
----------------------------
revision 1.4 locked by: root;
date: 2019/11/08 14:32:39; author: root; state: Exp; lines: +1 -0
declared unique()
----------------------------
revision 1.3
date: 2019/11/08 13:55:35; author: root; state: Exp; lines: +1 -0
declared createMasterArray()
----------------------------
revision 1.2
date: 2019/11/07 14:09:24; author: root; state: Exp; lines: +2 -1
declared openFile()
----------------------------
revision 1.1
date: 2019/11/05 14:09:55; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: headers.h,v
Working file: headers.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 the header file that wouls contain all include files
included stdio.h, stdlib.h, unistd.h, fcntl.h and string.h
----------------------------
revision 1.1 locked by: root;
date: 2019/11/05 13:50:47; 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 is going to do comp[ression.
Just Testing the mapping.
----------------------------
revision 1.3 locked by: root;
date: 2019/11/08 13:55:47; author: root; state: Exp; lines: +1 -0
Called createMasterArray()\
----------------------------
revision 1.2
date: 2019/11/07 14:09:46; author: root; state: Exp; lines: +3 -0
calling openFile() and obtaining file descriptor.
printing the file descriptor
----------------------------
revision 1.1
date: 2019/11/05 14:11:01; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: compressionStats.c,v
Working file: compressionStats.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
It will give compression Statistics
----------------------------
revision 1.1 locked by: root;
date: 2019/11/07 13:55:46; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: createMasterArray.c,v
Working file: createMasterArray.c
head: 1.7
branch:
locks: strict
root: 1.7
access list:
symbolic names:
keyword substitution: kv
total revisions: 7; selected revisions: 7
description:
IT takes the opened file descriptor as argument
reads the file one character at a time.
stores the charactrer in the master array
display the masterarray
----------------------------
revision 1.7 locked by: root;
date: 2019/11/08 14:32:46; author: root; state: Exp; lines: +2 -2
it calls the unique() to determine if the character in question is unique or not
if found unique, it is stored int the masterarray
----------------------------
revision 1.6
date: 2019/11/08 14:25:12; author: root; state: Exp; lines: +3 -1
Decrementing size after every read.
when size reached 0 we break out from the loop
----------------------------
revision 1.5
date: 2019/11/08 14:23:33; author: root; state: Exp; lines: +1 -0
Brought the file descriptor to the beginning of the file
It was taken to the end of file position earlier during calculating the file size.
----------------------------
revision 1.4
date: 2019/11/08 14:21:05; author: root; state: Exp; lines: +1 -1
Declared size;
----------------------------
revision 1.3
date: 2019/11/08 14:20:07; author: root; state: Exp; lines: +1 -0
Decremented the returned value from the lseek() so as to get the correct no of characters in the file.
----------------------------
revision 1.2
date: 2019/11/08 13:58:16; author: root; state: Exp; lines: +1 -1
declered ret
----------------------------
revision 1.1
date: 2019/11/08 13:57:03; 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 is going to do deCompression
Just Testing the mapping
----------------------------
revision 1.1 locked by: root;
date: 2019/11/05 14:11:35; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: deCompressionStats.c,v
Working file: deCompressionStats.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
It will give deCompression statictice
----------------------------
revision 1.1 locked by: root;
date: 2019/11/07 13:56:00; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: exitFunc.c,v
Working file: exitFunc.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
added exit() for exiting the program.
----------------------------
revision 1.2 locked by: root;
date: 2019/11/07 14:10:14; author: root; state: Exp; lines: +5 -2
Accepting the mode as string .
checking the mode using strncmp()
exiting the program according to the given mode
success/failure
----------------------------
revision 1.1
date: 2019/11/07 13:54:30; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: main.c,v
Working file: main.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
This is the main() for the
Project: Multiple Data Compression and Encryption using Iterative Technique.
Called mainMenu() to obtain choice.
Then call the appropriate function depending on choice.
----------------------------
revision 1.2 locked by: root;
date: 2019/11/07 14:10:55; author: root; state: Exp; lines: +1 -1
modified the call ti exit()
This time we pass the string mode (success) as argument
----------------------------
revision 1.1
date: 2019/11/07 13:56: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 function would display the main menu. We take choice from the user and return the choice. to main()
----------------------------
revision 1.1 locked by: root;
date: 2019/11/07 13:55:01; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: openFile.c,v
Working file: openFile.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
Takes the file opening mode as argument checks for the mode using strncmp()
then opens the file and returns the file descriptor.
----------------------------
revision 1.1 locked by: root;
date: 2019/11/08 13:56:06; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: declerations.h,v
Working file: declerations.h
head: 1.4
branch:
locks: strict
root: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4; selected revisions: 4
description:
This file contains all function declerations/prototypes.
declared mainMenu(). exitFunc(), compression(). deCompression(), compressionStats() and deCompressionStats()
----------------------------
revision 1.4 locked by: root;
date: 2019/11/08 14:32:39; author: root; state: Exp; lines: +1 -0
declared unique()
----------------------------
revision 1.3
date: 2019/11/08 13:55:35; author: root; state: Exp; lines: +1 -0
declared createMasterArray()
----------------------------
revision 1.2
date: 2019/11/07 14:09:24; author: root; state: Exp; lines: +2 -1
declared openFile()
----------------------------
revision 1.1
date: 2019/11/05 14:09:55; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: headers.h,v
Working file: headers.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 the header file that wouls contain all include files
included stdio.h, stdlib.h, unistd.h, fcntl.h and string.h
----------------------------
revision 1.1 locked by: root;
date: 2019/11/05 13:50:47; 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 is going to do comp[ression.
Just Testing the mapping.
----------------------------
revision 1.3 locked by: root;
date: 2019/11/08 13:55:47; author: root; state: Exp; lines: +1 -0
Called createMasterArray()\
----------------------------
revision 1.2
date: 2019/11/07 14:09:46; author: root; state: Exp; lines: +3 -0
calling openFile() and obtaining file descriptor.
printing the file descriptor
----------------------------
revision 1.1
date: 2019/11/05 14:11:01; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: compressionStats.c,v
Working file: compressionStats.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
It will give compression Statistics
----------------------------
revision 1.1 locked by: root;
date: 2019/11/07 13:55:46; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: createMasterArray.c,v
Working file: createMasterArray.c
head: 1.7
branch:
locks: strict
root: 1.7
access list:
symbolic names:
keyword substitution: kv
total revisions: 7; selected revisions: 7
description:
IT takes the opened file descriptor as argument
reads the file one character at a time.
stores the charactrer in the master array
display the masterarray
----------------------------
revision 1.7 locked by: root;
date: 2019/11/08 14:32:46; author: root; state: Exp; lines: +2 -2
it calls the unique() to determine if the character in question is unique or not
if found unique, it is stored int the masterarray
----------------------------
revision 1.6
date: 2019/11/08 14:25:12; author: root; state: Exp; lines: +3 -1
Decrementing size after every read.
when size reached 0 we break out from the loop
----------------------------
revision 1.5
date: 2019/11/08 14:23:33; author: root; state: Exp; lines: +1 -0
Brought the file descriptor to the beginning of the file
It was taken to the end of file position earlier during calculating the file size.
----------------------------
revision 1.4
date: 2019/11/08 14:21:05; author: root; state: Exp; lines: +1 -1
Declared size;
----------------------------
revision 1.3
date: 2019/11/08 14:20:07; author: root; state: Exp; lines: +1 -0
Decremented the returned value from the lseek() so as to get the correct no of characters in the file.
----------------------------
revision 1.2
date: 2019/11/08 13:58:16; author: root; state: Exp; lines: +1 -1
declered ret
----------------------------
revision 1.1
date: 2019/11/08 13:57:03; 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 is going to do deCompression
Just Testing the mapping
----------------------------
revision 1.1 locked by: root;
date: 2019/11/05 14:11:35; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: deCompressionStats.c,v
Working file: deCompressionStats.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
It will give deCompression statictice
----------------------------
revision 1.1 locked by: root;
date: 2019/11/07 13:56:00; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: exitFunc.c,v
Working file: exitFunc.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
added exit() for exiting the program.
----------------------------
revision 1.2 locked by: root;
date: 2019/11/07 14:10:14; author: root; state: Exp; lines: +5 -2
Accepting the mode as string .
checking the mode using strncmp()
exiting the program according to the given mode
success/failure
----------------------------
revision 1.1
date: 2019/11/07 13:54:30; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: main.c,v
Working file: main.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
This is the main() for the
Project: Multiple Data Compression and Encryption using Iterative Technique.
Called mainMenu() to obtain choice.
Then call the appropriate function depending on choice.
----------------------------
revision 1.2 locked by: root;
date: 2019/11/07 14:10:55; author: root; state: Exp; lines: +1 -1
modified the call ti exit()
This time we pass the string mode (success) as argument
----------------------------
revision 1.1
date: 2019/11/07 13:56: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 function would display the main menu. We take choice from the user and return the choice. to main()
----------------------------
revision 1.1 locked by: root;
date: 2019/11/07 13:55:01; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: openFile.c,v
Working file: openFile.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
Takes the file opening mode as argument checks for the mode using strncmp()
then opens the file and returns the file descriptor.
----------------------------
revision 1.1 locked by: root;
date: 2019/11/08 13:56:06; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: unique.c,v
Working file: unique.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 takes char , masterarray and its size as arguments
it checks that char in masterarray. if found it returns 0
otherwise when whole array is scaned and the character is not found, it returns 1
----------------------------
revision 1.1 locked by: root;
date: 2019/11/08 14:41:09; author: root; state: Exp;
Initial revision
=============================================================================
We are doing 4
bit compression
00 0
01 1
10 1
11 0
//We have
masterarray:
0 = i
1 = n
2 = o
3 = v
//We have file to
compress: innovation driven
by intelligence and logic
//
char byt; byt
= byt ^ byt. ~ byt:00000000
read a
character from file: ch=’n’;
(we fetch
characters from the file to compress and find the characters
location/position in the masterarray)
find the
location of this character in masterarray. loc(int)=1
loc is a 32 bit integer, but filesystem works on characters (8bits)
convert int (loc) into character (c) using typecasting. c=00000001
Leftshift by
4 bits: c=00010000
bitwise OR byt with c; byt:00000000
c:00010000 byt:00010000
read a character from file: ch=’o’;
find the
location of this character in masterarray. loc(int)=2
loc is a 32 bit integer, but filesystem works on characters (8bits)
convert int (loc) into character (c) using typecasting. C=00000010
Leftshift by 4 bits: c=00100000
Rightshift by 4 bits: c=00000010
bitwise OR byt with c; byt:00010000
c:00000010
byt:00010010
write this byt to the compressed file
looP till end of file: goto step1
RCS file: main.c,v
Working file: main.c
head: 1.9
branch:
locks: strict
root: 1.9
access list:
symbolic names:
keyword substitution: kv
total revisions: 9; selected revisions: 9
description:
This is the main() for Project:
Multiple Data Compression and Encryption using Iterative Technique.
Just Biginning.
----------------------------
revision 1.9 locked by: root;
date: 2020/03/27 05:01:54; author: root; state: Exp; lines: +4 -1
Called the creatMasterArray() and displayed the masterarray returned from it.
----------------------------
revision 1.8
date: 2020/03/27 04:37:34; author: root; state: Exp; lines: +1 -0
Prompting to user to give the name of file to compess.
the calling openFile()
----------------------------
revision 1.7
date: 2020/03/26 05:04:40; author: root; state: Exp; lines: +0 -15
Removed openFile() from this file into its own file.
----------------------------
revision 1.6
date: 2020/03/26 04:44:32; author: root; state: Exp; lines: +15 -4
Implemented a new functionopenFile() for opening file
this function prototype is given in newly included file declerations.h
this function openFile() opens the file using open() and returns the opend file file descriptor.
----------------------------
revision 1.5
date: 2020/03/26 04:39:49; author: root; state: Exp; lines: +1 -1
Typo
----------------------------
revision 1.4
date: 2020/03/26 04:38:56; author: root; state: Exp; lines: +1 -1
Typo
----------------------------
revision 1.3
date: 2020/03/26 04:37:38; author: root; state: Exp; lines: +11 -0
Opening the file to compress using open()
displaying the file descriptor.
closing the file using close()
----------------------------
revision 1.2
date: 2020/03/26 04:29:50; author: root; state: Exp; lines: +1 -1
*** empty log message ***
----------------------------
revision 1.1
date: 2020/03/26 04:24:05; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: openFile.c,v
Working file: openFile.c
head: 1.3
branch:
locks: strict
root: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
new file. It contans openFile() which is copied from main.c
----------------------------
revision 1.3 locked by: root;
date: 2020/03/27 05:02:27; author: root; state: Exp; lines: +1 -0
typo
----------------------------
revision 1.2
date: 2020/03/27 04:38:00; author: root; state: Exp; lines: +10 -2
taking to name of file to compress from the user. Allocated space for filename.
used to filename in open() then deallocated the filename.
----------------------------
revision 1.1
date: 2020/03/26 05:05:07; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: creatMasterArray.c,v
Working file: creatMasterArray.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
This function would read the input file, and place all unique characters in the masterarray
right now, allocating space for masterarray using malloc()
fluching garbae from the masterarray and placing '\0' in whole array using memset()
DETERMINING THE FILESIZE USING LSEEK()
Reading all characters from the file 1 by 1 in an infinite whil loop
decrementing 1 after reading every character and if the size decrements to 0 then break out of while loop
placing the read character in the masterarray
returning the masterarray to main()
----------------------------
revision 1.2 locked by: root;
date: 2020/03/27 05:09:06; author: root; state: Exp; lines: +2 -1
declared and initialized i to be used as index into masterarray.
----------------------------
revision 1.1
date: 2020/03/27 05:03:14; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: declerations.h,v
Working file: declerations.h
head: 1.3
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
This header file would contain declerations for all functions in the project
declared openFile();
----------------------------
revision 1.3
date: 2020/03/31 04:59:14; author: root; state: Exp; lines: +1 -0
declared unique()
----------------------------
revision 1.2
date: 2020/03/27 05:01:40; author: root; state: Exp; lines: +1 -0
declared creatMasterArray()
----------------------------
revision 1.1
date: 2020/03/26 05:04:07; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: headers.h,v
Working file: headers.h
head: 1.3
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
This is the hader file for all the include files in the project
included stdio.h and stdlib.h
----------------------------
revision 1.3
date: 2020/03/27 05:07:59; author: root; state: Exp; lines: +1 -0
included string.h
----------------------------
revision 1.2
date: 2020/03/26 04:37:15; author: root; state: Exp; lines: +2 -0
Added unistd.h and fcntl.h
----------------------------
revision 1.1
date: 2020/03/26 04:29:11; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: creatMasterArray.c,v
Working file: creatMasterArray.c
head: 1.5
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 5; selected revisions: 5
description:
This function would read the input file, and place all unique characters in the masterarray
right now, allocating space for masterarray using malloc()
fluching garbae from the masterarray and placing '\0' in whole array using memset()
DETERMINING THE FILESIZE USING LSEEK()
Reading all characters from the file 1 by 1 in an infinite whil loop
decrementing 1 after reading every character and if the size decrements to 0 then break out of while loop
placing the read character in the masterarray
returning the masterarray to main()
----------------------------
revision 1.5
date: 2020/03/31 04:59:26; author: root; state: Exp; lines: +2 -3
Identifyiong , if the character read from the file is unique in the
masterarray or not.
This is being done by unique()
----------------------------
revision 1.4
date: 2020/03/31 04:32:42; author: root; state: Exp; lines: +2 -1
Bug Resovlved:
we were taking to file position to end of file so as to calculate the size of file.
But, fogot to bring the file position bACK TO BEGINNING.
Now, we bring the file position back to beginning using lseek()
----------------------------
revision 1.3
date: 2020/03/31 04:22:46; author: root; state: Exp; lines: +2 -0
Debugging: Issue: Master array is not displaying. The masterarray appears to be empty.
Displaying the character read from file and the array index.
----------------------------
revision 1.2
date: 2020/03/27 05:09:06; author: root; state: Exp; lines: +2 -1
declared and initialized i to be used as index into masterarray.
----------------------------
revision 1.1
date: 2020/03/27 05:03:14; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: main.c,v
Working file: main.c
head: 1.9
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 9; selected revisions: 9
description:
This is the main() for Project:
Multiple Data Compression and Encryption using Iterative Technique.
Just Biginning.
----------------------------
revision 1.9
date: 2020/03/27 05:01:54; author: root; state: Exp; lines: +4 -1
Called the creatMasterArray() and displayed the masterarray returned from it.
----------------------------
revision 1.8
date: 2020/03/27 04:37:34; author: root; state: Exp; lines: +1 -0
Prompting to user to give the name of file to compess.
the calling openFile()
----------------------------
revision 1.7
date: 2020/03/26 05:04:40; author: root; state: Exp; lines: +0 -15
Removed openFile() from this file into its own file.
----------------------------
revision 1.6
date: 2020/03/26 04:44:32; author: root; state: Exp; lines: +15 -4
Implemented a new functionopenFile() for opening file
this function prototype is given in newly included file declerations.h
this function openFile() opens the file using open() and returns the opend file file descriptor.
----------------------------
revision 1.5
date: 2020/03/26 04:39:49; author: root; state: Exp; lines: +1 -1
Typo
----------------------------
revision 1.4
date: 2020/03/26 04:38:56; author: root; state: Exp; lines: +1 -1
Typo
----------------------------
revision 1.3
date: 2020/03/26 04:37:38; author: root; state: Exp; lines: +11 -0
Opening the file to compress using open()
displaying the file descriptor.
closing the file using close()
----------------------------
revision 1.2
date: 2020/03/26 04:29:50; author: root; state: Exp; lines: +1 -1
*** empty log message ***
----------------------------
revision 1.1
date: 2020/03/26 04:24:05; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: openFile.c,v
Working file: openFile.c
head: 1.3
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
new file. It contans openFile() which is copied from main.c
----------------------------
revision 1.3
date: 2020/03/27 05:02:27; author: root; state: Exp; lines: +1 -0
typo
----------------------------
revision 1.2
date: 2020/03/27 04:38:00; author: root; state: Exp; lines: +10 -2
taking to name of file to compress from the user. Allocated space for filename.
used to filename in open() then deallocated the filename.
----------------------------
revision 1.1
date: 2020/03/26 05:05:07; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: unique.c,v
Working file: unique.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
This function will determine if the charater in question is unique or not.
if the ma size is 0 then that character is 1st char , it must bu unique, so return 1.
else we compared the character is questionwith every character in the mastararry
if the char is found in ma , we return 0
if the for loop is over, it explains that the char was not found in ma
so it must be unique. we return 1
----------------------------
revision 1.1
date: 2020/03/31 05:00:11; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: declerations.h,v
Working file: declerations.h
head: 1.4
branch:
locks: strict
root: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4; selected revisions: 4
description:
This header file would contain declerations for all functions in the project
declared openFile();
----------------------------
revision 1.4 locked by: root;
date: 2020/04/02 04:53:58; author: root; state: Exp; lines: +2 -0
declared new codeLength()
----------------------------
revision 1.3
date: 2020/03/31 04:59:14; author: root; state: Exp; lines: +1 -0
declared unique()
----------------------------
revision 1.2
date: 2020/03/27 05:01:40; author: root; state: Exp; lines: +1 -0
declared creatMasterArray()
----------------------------
revision 1.1
date: 2020/03/26 05:04:07; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: codeLength.c,v
Working file: codeLength.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
This function takes the masterarray as argument.
finds the length of masterarray
depending on the length of masterarray we return codelength.
----------------------------
revision 1.1 locked by: root;
date: 2020/04/02 04:54:14; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: main.c,v
Working file: main.c
head: 1.11
branch:
locks: strict
root: 1.11
access list:
symbolic names:
keyword substitution: kv
total revisions: 11; selected revisions: 11
description:
This is the main() for Project:
Multiple Data Compression and Encryption using Iterative Technique.
Just Biginning.
----------------------------
revision 1.11 locked by: root;
date: 2020/04/02 04:55:37; author: root; state: Exp; lines: +4 -1
Determining code length using codeLength()
----------------------------
revision 1.10
date: 2020/04/02 04:38:27; author: root; state: Exp; lines: +1 -0
Inserted empty lie to check Makefile
----------------------------
revision 1.9
date: 2020/03/27 05:01:54; author: root; state: Exp; lines: +4 -1
Called the creatMasterArray() and displayed the masterarray returned from it.
----------------------------
revision 1.8
date: 2020/03/27 04:37:34; author: root; state: Exp; lines: +1 -0
Prompting to user to give the name of file to compess.
the calling openFile()
----------------------------
revision 1.7
date: 2020/03/26 05:04:40; author: root; state: Exp; lines: +0 -15
Removed openFile() from this file into its own file.
----------------------------
revision 1.6
date: 2020/03/26 04:44:32; author: root; state: Exp; lines: +15 -4
Implemented a new functionopenFile() for opening file
this function prototype is given in newly included file declerations.h
this function openFile() opens the file using open() and returns the opend file file descriptor.
----------------------------
revision 1.5
date: 2020/03/26 04:39:49; author: root; state: Exp; lines: +1 -1
Typo
----------------------------
revision 1.4
date: 2020/03/26 04:38:56; author: root; state: Exp; lines: +1 -1
Typo
----------------------------
revision 1.3
date: 2020/03/26 04:37:38; author: root; state: Exp; lines: +11 -0
Opening the file to compress using open()
displaying the file descriptor.
closing the file using close()
----------------------------
revision 1.2
date: 2020/03/26 04:29:50; author: root; state: Exp; lines: +1 -1
*** empty log message ***
----------------------------
revision 1.1
date: 2020/03/26 04:24:05; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: declerations.h,v
Working file: declerations.h
head: 1.6
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 6; selected revisions: 6
description:
This header file would contain declerations for all functions in the project
declared openFile();
----------------------------
revision 1.6
date: 2020/04/03 06:03:46; author: root; state: Exp; lines: +1 -1
typo
----------------------------
revision 1.5
date: 2020/04/03 06:00:19; author: root; state: Exp; lines: +7 -0
declared all compression functions for codelength 2,3,4,5,6,7
----------------------------
revision 1.4
date: 2020/04/02 04:53:58; author: root; state: Exp; lines: +2 -0
declared new codeLength()
----------------------------
revision 1.3
date: 2020/03/31 04:59:14; author: root; state: Exp; lines: +1 -0
declared unique()
----------------------------
revision 1.2
date: 2020/03/27 05:01:40; author: root; state: Exp; lines: +1 -0
declared creatMasterArray()
----------------------------
revision 1.1
date: 2020/03/26 05:04:07; author: root; state: Exp;
Initial revision
=============================================================================
@page { margin: 0.79in }
pre.cjk { font-family: "DejaVu Sans Mono", monospace }
p { margin-bottom: 0.1in; line-height: 120% }
RCS file: compress2.c,v
Working file: compress2.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
This will implement the compression algorithm for codelength 2. Just mapping for now.
----------------------------
revision 1.1
date: 2020/04/03 06:00:44; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: compress3.c,v
Working file: compress3.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
This will implement the compression algorithm for codelength 3. Just Mapping for now
----------------------------
revision 1.1
date: 2020/04/03 06:01:21; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: compress4.c,v
Working file: compress4.c
head: 1.3
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
This will implement the compression algorithm for codelength 4. Just mapping fr now
----------------------------
revision 1.3
date: 2020/04/03 06:39:32; author: root; state: Exp; lines: +7 -1
Determined the size of file using lseek()
Brought back the file position to beginning of file using lseek()
----------------------------
revision 1.2
date: 2020/04/03 06:08:07; author: root; state: Exp; lines: +3 -0
Checking the size of file using laseek() and printing the file size.
----------------------------
revision 1.1
date: 2020/04/03 06:01:38; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: compress5.c,v
Working file: compress5.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
This will implement the compression algorithm for codelength 5. Just Mapping for Now.
----------------------------
revision 1.1
date: 2020/04/03 06:01:48; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: compress6.c,v
Working file: compress6.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
This will implement the compression algorithm for codelength 6. Just Mapping for Now
----------------------------
revision 1.1
date: 2020/04/03 06:01:57; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: compress7.c,v
Working file: compress7.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
This will implement the compression algorithm for codelength 7. Just Mapping for now
----------------------------
revision 1.1
date: 2020/04/03 06:02:06; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: main.c,v
Working file: main.c
head: 1.12
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 12; selected revisions: 12
description:
This is the main() for Project:
Multiple Data Compression and Encryption using Iterative Technique.
Just Biginning.
----------------------------
revision 1.12
date: 2020/04/03 06:02:14; author: root; state: Exp; lines: +21 -0
calling aropriate campress2,3,4,5,6,7,function, depending on code length through switch statement
----------------------------
revision 1.11
date: 2020/04/02 04:55:37; author: root; state: Exp; lines: +4 -1
Determining code length using codeLength()
----------------------------
revision 1.10
date: 2020/04/02 04:38:27; author: root; state: Exp; lines: +1 -0
Inserted empty lie to check Makefile
----------------------------
revision 1.9
date: 2020/03/27 05:01:54; author: root; state: Exp; lines: +4 -1
Called the creatMasterArray() and displayed the masterarray returned from it.
----------------------------
revision 1.8
date: 2020/03/27 04:37:34; author: root; state: Exp; lines: +1 -0
Prompting to user to give the name of file to compess.
the calling openFile()
----------------------------
revision 1.7
date: 2020/03/26 05:04:40; author: root; state: Exp; lines: +0 -15
Removed openFile() from this file into its own file.
----------------------------
revision 1.6
date: 2020/03/26 04:44:32; author: root; state: Exp; lines: +15 -4
Implemented a new functionopenFile() for opening file
this function prototype is given in newly included file declerations.h
this function openFile() opens the file using open() and returns the opend file file descriptor.
----------------------------
revision 1.5
date: 2020/03/26 04:39:49; author: root; state: Exp; lines: +1 -1
Typo
----------------------------
revision 1.4
date: 2020/03/26 04:38:56; author: root; state: Exp; lines: +1 -1
Typo
----------------------------
revision 1.3
date: 2020/03/26 04:37:38; author: root; state: Exp; lines: +11 -0
Opening the file to compress using open()
displaying the file descriptor.
closing the file using close()
----------------------------
revision 1.2
date: 2020/03/26 04:29:50; author: root; state: Exp; lines: +1 -1
*** empty log message ***
----------------------------
revision 1.1
date: 2020/03/26 04:24:05; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: declerations.h,v
Working file: declerations.h
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
This header file would contain all the declerations for thew Project.
Declared mainMenu(), compression(), compressionStats(), deCompression(), deCompressionStats(), exitFunc()
----------------------------
revision 1.2 locked by: root;
date: 2020/05/29 00:01:24; author: root; state: Exp; lines: +2 -0
declared openFile()
----------------------------
revision 1.1
date: 2020/05/26 00:23:33; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: headers.h,v
Working file: headers.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 header file would cotain all the include headers
included stdio.h and stdlib.h
----------------------------
revision 1.3 locked by: root;
date: 2020/05/29 00:07:44; author: root; state: Exp; lines: +2 -0
inclued fcntl.h and unistd.h
----------------------------
revision 1.2
date: 2020/05/26 00:24:42; author: root; state: Exp; lines: +1 -0
Included string.h
----------------------------
revision 1.1
date: 2020/05/19 00:27:48; 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 would perform Compression.
Just Checking Mapping for Now.
----------------------------
revision 1.3 locked by: root;
date: 2020/05/29 00:04:55; author: root; state: Exp; lines: +1 -0
declared fd;
----------------------------
revision 1.2
date: 2020/05/29 00:01:39; author: root; state: Exp; lines: +5 -0
Called the openFile() and obtained the file descriptor.
Displayed the file descriptor
----------------------------
revision 1.1
date: 2020/05/26 00:24:53; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: compressionStats.c,v
Working file: compressionStats.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 Ststistics
Just Checking Mapping for Now
----------------------------
revision 1.1 locked by: root;
date: 2020/05/26 00:25:19; 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:
ssage!
>> This function would perform DeCompression
Just Checking Mapping for Now.
----------------------------
revision 1.1 locked by: root;
date: 2020/05/26 00:25:45; author: root; state: Exp;
Initial revision
RCS file: deCompressionStats.c,v
Working file: deCompressionStats.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 Statistics
Just Checking Mapping for Now
----------------------------
revision 1.1 locked by: root;
date: 2020/05/26 00:26:18; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: exitFunc.c,v
Working file: exitFunc.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
it takes exit status as argument
Compares status with success or failure using strncmp()
Thes exits accordingly.
----------------------------
revision 1.2 locked by: root;
date: 2020/05/29 00:02:18; author: root; state: Exp; lines: +3 -3
*** empty log message ***
----------------------------
revision 1.1
date: 2020/05/26 00:26:44; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: main.c,v
Working file: main.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
This is the main() source file for...
Project: Multiple Data Compression and Encryption using Iterative Tchnique.
Just Begin the function for now.
----------------------------
revision 1.2 locked by: root;
date: 2020/05/26 00:27:35; author: root; state: Exp; lines: +26 -0
In am infilite loop call the mainMenu() and obtain choice.
epending on choice we call appropriate function throughswitch()
Ony exitFunc() is implemented till now.
----------------------------
revision 1.1
date: 2020/05/19 00:28:38; 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 function displays the main menu,
obtains the choice from the user and returns it to main()
----------------------------
revision 1.1 locked by: root;
date: 2020/05/26 00:29:07; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: openFile.c,v
Working file: openFile.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 function will take the name of file to compress from user
open the file and returns the file descriptor to the calling function
weallocated space for filename, after the file is opened and file descriptoir is obtained,
we free the allocated space.
openFile() takes the file open mode from the calling function.
check the file open mode using strncmp() and
opened the file in appropriate mode
----------------------------
revision 1.6 locked by: root;
date: 2020/05/29 00:16:14; author: root; state: Exp; lines: +3 -2
Debugging: Noted that wrong fileOpen() argument was passed. Corrected it.
----------------------------
revision 1.5
date: 2020/05/29 00:13:21; author: root; state: Exp; lines: +1 -0
Filled the spce allocated for filename with '\0' using memset()
----------------------------
revision 1.4
date: 2020/05/29 00:11:52; author: root; state: Exp; lines: +1 -0
Debugging: Testing the length of filename entered by user
----------------------------
revision 1.3
date: 2020/05/29 00:10:27; author: root; state: Exp; lines: +1 -1
typo
----------------------------
revision 1.2
date: 2020/05/29 00:09:17; author: root; state: Exp; lines: +1 -0
Debugging: Wrong fd is being returned from this function.
----------------------------
revision 1.1
date: 2020/05/29 00:02:21; author: root; state: Exp;
Initial revision
===================
RCS file: declerations.h,v
Working file: declerations.h
head: 1.4
branch:
locks: strict
root: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4; selected revisions: 4
description:
This header file would contain all the declerations for thew Project.
Declared mainMenu(), compression(), compressionStats(), deCompression(), deCompressionStats(), exitFunc()
----------------------------
revision 1.4 locked by: root;
date: 2020/06/01 00:25:50; author: root; state: Exp; lines: +1 -0
declared unique()
----------------------------
revision 1.3
date: 2020/06/01 00:05:26; author: root; state: Exp; lines: +1 -0
declared creatMasterArray()
----------------------------
revision 1.2
date: 2020/05/29 00:01:24; author: root; state: Exp; lines: +2 -0
declared openFile()
----------------------------
revision 1.1
date: 2020/05/26 00:23:33; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: headers.h,v
Working file: headers.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 header file would cotain all the include headers
included stdio.h and stdlib.h
----------------------------
revision 1.3 locked by: root;
date: 2020/05/29 00:07:44; author: root; state: Exp; lines: +2 -0
inclued fcntl.h and unistd.h
----------------------------
revision 1.2
date: 2020/05/26 00:24:42; author: root; state: Exp; lines: +1 -0
Included string.h
----------------------------
revision 1.1
date: 2020/05/19 00:27:48; author: root; state: Exp;
Initial revision
RCS file: compression.c,v
Working file: compression.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 function would perform Compression.
Just Checking Mapping for Now.
----------------------------
revision 1.4 locked by: root;
date: 2020/06/01 00:05:45; author: root; state: Exp; lines: +2 -1
Called the creatMasterArray() that returns the masterarray containing all unique characters in the input for for compression
----------------------------
revision 1.3
date: 2020/05/29 00:04:55; author: root; state: Exp; lines: +1 -0
declared fd;
----------------------------
revision 1.2
date: 2020/05/29 00:01:39; author: root; state: Exp; lines: +5 -0
Called the openFile() and obtained the file descriptor.
Displayed the file descriptor
----------------------------
revision 1.1
date: 2020/05/26 00:24:53; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: compressionStats.c,v
Working file: compressionStats.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 Ststistics
Just Checking Mapping for Now
----------------------------
revision 1.1 locked by: root;
date: 2020/05/26 00:25:19; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: creatMasterArray.c,v
Working file: creatMasterArray.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 function takes the opened file descriptor as argument.
It will read characters from the opeed file using read and file deascriptor, one-by-one
The read characters will be checked and if found unique then it will be stored in the master array
finally the master array will be returned.
Right now just checkingfor mapping.
----------------------------
revision 1.4 locked by: root;
date: 2020/06/01 00:30:57; author: root; state: Exp; lines: +1 -1
typo
----------------------------
revision 1.3
date: 2020/06/01 00:25:59; author: root; state: Exp; lines: +35 -1
check the size of file, create an empty *ma
start while loop for reading characters from the file one-by-one
read a character from the file and check reading error(if-any)
check the character (read from file) for uniqueness by callig unique()
if unique() returns 1, it means that the char in question was indeed unique
so, it has to be stored in ma.
1st allocate space for this unique character in the masterarray
by, expanding masterarray using realloc()
----------------------------
revision 1.2
date: 2020/06/01 00:09:52; author: root; state: Exp; lines: +1 -1
typo
----------------------------
revision 1.1
date: 2020/06/01 00:06:38; 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:
ssage!
>> This function would perform DeCompression
Just Checking Mapping for Now.
----------------------------
revision 1.1 locked by: root;
date: 2020/05/26 00:25:45; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: deCompressionStats.c,v
Working file: deCompressionStats.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 Statistics
Just Checking Mapping for Now
----------------------------
revision 1.1 locked by: root;
date: 2020/05/26 00:26:18; author: root; state: Exp;
Initial revision
RCS file: exitFunc.c,v
Working file: exitFunc.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
it takes exit status as argument
Compares status with success or failure using strncmp()
Thes exits accordingly.
----------------------------
revision 1.2 locked by: root;
date: 2020/05/29 00:02:18; author: root; state: Exp; lines: +3 -3
*** empty log message ***
----------------------------
revision 1.1
date: 2020/05/26 00:26:44; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: main.c,v
Working file: main.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
This is the main() source file for...
Project: Multiple Data Compression and Encryption using Iterative Tchnique.
Just Begin the function for now.
----------------------------
revision 1.2 locked by: root;
date: 2020/05/26 00:27:35; author: root; state: Exp; lines: +26 -0
In am infilite loop call the mainMenu() and obtain choice.
epending on choice we call appropriate function throughswitch()
Ony exitFunc() is implemented till now.
----------------------------
revision 1.1
date: 2020/05/19 00:28:38; 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 function displays the main menu,
obtains the choice from the user and returns it to main()
----------------------------
revision 1.1 locked by: root;
date: 2020/05/26 00:29:07; author: root; state: Exp;
Initial revision
RCS file: openFile.c,v
Working file: openFile.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 function will take the name of file to compress from user
open the file and returns the file descriptor to the calling function
weallocated space for filename, after the file is opened and file descriptoir is obtained,
we free the allocated space.
openFile() takes the file open mode from the calling function.
check the file open mode using strncmp() and
opened the file in appropriate mode
----------------------------
revision 1.6 locked by: root;
date: 2020/05/29 00:16:14; author: root; state: Exp; lines: +3 -2
Debugging: Noted that wrong fileOpen() argument was passed. Corrected it.
----------------------------
revision 1.5
date: 2020/05/29 00:13:21; author: root; state: Exp; lines: +1 -0
Filled the spce allocated for filename with '\0' using memset()
----------------------------
revision 1.4
date: 2020/05/29 00:11:52; author: root; state: Exp; lines: +1 -0
Debugging: Testing the length of filename entered by user
----------------------------
revision 1.3
date: 2020/05/29 00:10:27; author: root; state: Exp; lines: +1 -1
typo
----------------------------
revision 1.2
date: 2020/05/29 00:09:17; author: root; state: Exp; lines: +1 -0
Debugging: Wrong fd is being returned from this function.
----------------------------
revision 1.1
date: 2020/05/29 00:02:21; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: unique.c,v
Working file: unique.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
This function takes the pointer to masterarray and the character in question as arguments
it would check the character for uniqueness.
it the character is not found in the masterarray it will return 1 else if found it will return 0;
----------------------------
revision 1.2 locked by: root;
date: 2020/06/01 00:31:02; author: root; state: Exp; lines: +1 -1
typo
----------------------------
revision 1.1
date: 2020/06/01 00:28:47; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: declerations.h,v
Working file: declerations.h
head: 1.3
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
This file would contan all delerations.
Declared mainMenu()
----------------------------
revision 1.3
date: 2020/06/23 02:06:59; author: root; state: Exp; lines: +2 -0
declared creatMasterArray() and unique()
----------------------------
revision 1.2
date: 2020/06/19 01:44:00; author: root; state: Exp; lines: +3 -0
Declared exitFunc(), compression() and openFile()
----------------------------
revision 1.1
date: 2020/06/17 01:52:23; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: headers.h,v
Working file: headers.h
head: 1.2
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
The is the heaaders file for listing all incude files
included stdio.h and stdlib.h
----------------------------
revision 1.2
date: 2020/06/19 01:44:27; author: root; state: Exp; lines: +3 -0
Included fntl.h, unistd.h and string.h
----------------------------
revision 1.1
date: 2020/06/17 01:51:40; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: compression.c,v
Working file: compression.c
head: 1.3
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
This function is going to implement compression.
called the openFile() and obtaining the file descriptor.
Not yest got the file descriptor!
----------------------------
revision 1.3
date: 2020/06/23 02:07:17; author: root; state: Exp; lines: +5 -0
Called creatMastarArray() and obtained master array
printing it.
----------------------------
revision 1.2
date: 2020/06/23 01:27:32; author: root; state: Exp; lines: +1 -0
Printing the file desciptor
----------------------------
revision 1.1
date: 2020/06/19 01:44:46; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: creatMasterArray.c,v
Working file: creatMasterArray.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
Found the size of file
readcharacters from the file char-by-chat is a while loop
if the character if found to be unique (using the unique()) then
stored the char in the masterarray.
The master array size is incremented using realloc()
append '\0' to masterarray
returned it.
----------------------------
revision 1.1
date: 2020/06/23 02:07:50; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: exitFunc.c,v
Working file: exitFunc.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
This function takes the exit status as argument, checks the status using strncmp() and exits accordingly
----------------------------
revision 1.1
date: 2020/06/19 01:46:06; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: main.c,v
Working file: main.c
head: 1.2
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
Tis is the main source file for
Project: Multiple data Compression and Encryption using Iterative Techique.
Called mainMenu() in a while Loop.
Just implemented case 0 to exit from the program.
----------------------------
revision 1.2
date: 2020/06/19 01:48:21; author: root; state: Exp; lines: +4 -1
Added compression() through case 1.
calling exitFunc() through case 0
----------------------------
revision 1.1
date: 2020/06/17 01:53:20; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: mainMenu.c,v
Working file: mainMenu.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
Displayed the Menu options, obtained choice from user and returned it to main()
----------------------------
revision 1.1
date: 2020/06/17 01:54:28; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: openFile.c,v
Working file: openFile.c
head: 1.10
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 10; selected revisions: 10
description:
This function is going to open any file.
the file open mode comes through argument.
The filename will come from the user.
Allocated space for filename and accepting the filename from user using getchar()
----------------------------
revision 1.10
date: 2020/06/23 01:27:43; author: root; state: Exp; lines: +16 -4
Checked the mode argument using strncmp() and openedd the file in appropriate mode
----------------------------
revision 1.9
date: 2020/06/19 02:09:33; author: root; state: Exp; lines: +8 -2
Replaced the while() with do-while()for accepting input filename using getchar()
----------------------------
revision 1.8
date: 2020/06/19 02:03:23; author: root; state: Exp; lines: +1 -0
Pushing a '\n' into output stream for flushing it.
----------------------------
revision 1.7
date: 2020/06/19 02:01:34; author: root; state: Exp; lines: +1 -1
Removed the debug statement (printing index into filename)
----------------------------
revision 1.6
date: 2020/06/19 02:00:24; author: root; state: Exp; lines: +1 -1
typo
----------------------------
revision 1.5
date: 2020/06/19 01:58:29; author: root; state: Exp; lines: +1 -0
Troubleshooting. As it is not taking the filename.
Step: Printing the index into filename so as to know the number of iterations for getchar()
----------------------------
revision 1.4
date: 2020/06/19 01:56:01; author: root; state: Exp; lines: +1 -1
Replace (--) with (i-1) while removing the suffixed '\n' from the input filename
----------------------------
revision 1.3
date: 2020/06/19 01:54:40; author: root; state: Exp; lines: +1 -1
The input string (filename) had a suffixed '\n'. Removed it.
----------------------------
revision 1.2
date: 2020/06/19 01:52:06; author: root; state: Exp; lines: +1 -0
Flushing the '\n' from stdin
----------------------------
revision 1.1
date: 2020/06/19 01:49:03; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: unique.c,v
Working file: unique.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
Just checking mapping
----------------------------
revision 1.1
date: 2020/06/23 02:10:03; author: root; state: Exp;
Initial revision
=============================================================================
It looks like you're new here. If you want to get involved, click one of these buttons!