RCS file: ./compression4.c,v Working file: ./compression4.c head: 1.22 branch: locks: strict farman: 1.22 access list: symbolic names: keyword substitution: kv total revisions: 22; selected revisions: 22 description: make compression function to compressing file ---------------------------- revision 1.22 locked by: farman; date: 2016/08/17 16:27:47; author: farman; state: Exp; lines: +1 -1 return 0 ---------------------------- revision 1.21 date: 2016/08/17 16:26:27; author: farman; state: Exp; lines: +1 -1 data type of byt ch should be static unsigned ---------------------------- revision 1.20 date: 2016/08/17 16:25:28; author: farman; state: Exp; lines: +1 -1 byt OR with 0xff after while loop ---------------------------- revision 1.19 date: 2016/08/17 16:23:51; author: farman; state: Exp; lines: +4 -4 cheak ch with last charecter if it meatch then byt OR with 0x0f and write into cofd file using write ---------------------------- revision 1.18 date: 2016/08/17 16:21:29; author: farman; state: Exp; lines: +2 -2 make new mfd file write masterarray into ekey file close the cofd and mfd file ---------------------------- revision 1.17 date: 2016/08/17 16:19:35; author: farman; state: Exp; lines: +3 -3 using while loop repeat above process untinl we read last charecter ---------------------------- revision 1.16 date: 2016/08/17 16:18:32; author: farman; state: Exp; lines: +1 -1 write the byt into new cfd file ---------------------------- revision 1.15 date: 2016/08/17 16:16:37; author: farman; state: Exp; lines: +2 -2 nom right shift c by 4 bit left shift c by 4 bit and now c or with byt print byt again ---------------------------- revision 1.14 date: 2016/08/17 16:14:54; author: farman; state: Exp; lines: +4 -4 read the next chreacter and print chrecter with location and use sprintf to convert i into charecter and stored into c ---------------------------- revision 1.13 date: 2016/08/17 16:13:27; author: farman; state: Exp; lines: +1 -1 now oring c with byt and print the byt ---------------------------- revision 1.12 date: 2016/08/17 16:12:08; author: farman; state: Exp; lines: +1 -1 left shift the charecter 4 bit ---------------------------- revision 1.11 date: 2016/08/17 16:10:39; author: farman; state: Exp; lines: +2 -2 using sprintf stored charecter after converting i into charecter ---------------------------- revision 1.10 date: 2016/08/17 16:09:55; author: farman; state: Exp; lines: +1 -1 print charecter ch with its location ---------------------------- revision 1.9 date: 2016/08/17 16:07:15; author: farman; state: Exp; lines: +1 -1 add findindex function and cheak if charecter metch with masterarray than return i as a location ---------------------------- revision 1.8 date: 2016/08/17 16:05:16; author: farman; state: Exp; lines: +1 -1 cheak charecter if it is last then programe will become terminate ---------------------------- revision 1.7 date: 2016/08/17 16:04:41; author: farman; state: Exp; lines: +1 -1 raed fd file and stored charecter one by one ---------------------------- revision 1.6 date: 2016/08/17 16:03:02; author: farman; state: Exp; lines: +1 -1 use lseek for taking curser at 0 location ---------------------------- revision 1.5 date: 2016/08/17 16:01:30; author: farman; state: Exp; lines: +2 -2 creat master array file mfd ---------------------------- revision 1.4 date: 2016/08/17 15:58:34; author: farman; state: Exp; lines: +2 -2 print masterarray and creat compressed file ---------------------------- revision 1.3 date: 2016/08/17 15:57:14; author: farman; state: Exp; lines: +2 -2 accept argument with data type ---------------------------- revision 1.2 date: 2016/08/17 15:56:12; author: farman; state: Exp; lines: +27 -27 initialise all variable ---------------------------- revision 1.1 date: 2016/08/17 14:08:22; author: farman; state: Exp; Initial revision =============================================================================