1.6 log @entered the prototype of a function used for codelength @ text @#include<stdio.h> #include<fcntl.h> #include<stdlib.h> int fd,count,flag=0,l,check,i,cl=0; char buff,*masterarray; int openfile(char *); int print_character(); int create_masterarray(char); int distinct_ma(char *,int); int codelength(int); @
1.5 log @prototype of a function having ditinct character is declared @ text @d4 1 a4 1 int fd,count,flag=0,l,check,i; d10 1 @
1.4 log @*** empty log message *** @ text @d4 1 a4 1 int fd,count,flag=0,l; d9 1 @
1.3 log @checking total number of characters in source file @ text @d4 1 a4 1 int fd,count,flag=0; d8 1 a8 1 int create_masterarray(char, int ); @
1.2 log @testing 2nd time @ text @d8 1 a8 1 int create_masterarray(char); @
1.1 log @Initial revision @ text @d8 1 a8 1 int create_masterarray(char ); @
OUT:printf("masterarray=%s",masterarray); printf("the total number of characters re %d\n",l); cl=code_length(l); printf("codelength= %d\n",cl); } int main(int argc,char *argv[]) { // int l; if(argc!=2) printf("error"); else { openfile(argv[1]); print_character(); close(fd); return 0; } } @
1.4 log @create a mmasterarray of distinct characters... @ text @d11 19 d31 1 a31 1 { d36 1 a36 1 return 0; a77 1 printf("the total number of characters re %d\n",l); d81 3 @
RCS file: mdc.c,v Working file: mdc.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 program for compression of file. ---------------------------- revision 1.11 locked by: root; date: 2014/07/03 17:16:22; author: root; state: Exp; lines: +15 -17 *** empty log message *** ---------------------------- revision 1.10 date: 2014/07/03 17:07:40; author: root; state: Exp; lines: +4 -11 Code optimisation and removal of debugging statements. Compression and Decompression are currently in the same C program. Writing decompression in diff c program next. ---------------------------- revision 1.9 date: 2014/07/03 16:54:57; author: root; state: Exp; lines: +79 -19 Compression and decompression for 4 bit implemented. ---------------------------- revision 1.8 date: 2014/07/01 18:27:43; author: root; state: Exp; lines: +90 -37 implemented 4 bit data compression using compression4(). the compressed data from file is being written to comfile.txt zipwrite() name has been updated. ---------------------------- revision 1.7 date: 2014/06/30 15:23:32; author: root; state: Exp; lines: +52 -4 compression() added and related compression functions for testing.[compression2(),compression3(),......compression7()].Removed all debugging statements. ---------------------------- revision 1.6 date: 2014/06/30 15:08:58; author: root; state: Exp; lines: +17 -16 made masterarray local to main(). ---------------------------- revision 1.5 date: 2014/06/28 19:43:49; author: root; state: Exp; lines: +26 -4 finding codelength for the no of distinct characters in file. / ---------------------------- revision 1.4 date: 2014/06/28 19:23:09; author: root; state: Exp; lines: +6 -6 returned ndc from copy_masterarray function to obtain no of distinct characters ---------------------------- revision 1.3 date: 2014/06/28 18:42:56; author: nitesh; state: Exp; lines: +2 -1 calculated ndc ---------------------------- revision 1.2 date: 2014/06/28 17:51:11; author: nitesh; state: Exp; lines: +54 -34 this program generates an array of distinct characters of file. ---------------------------- revision 1.1 date: 2014/06/28 16:02:14; author: nitesh; state: Exp; Initial revision =============================================================================