EmbLogic's Blog

Data compression done!!!!!!!!

RCS file: file.c,v Working file: file.c head: 1.17 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 17; selected revisions: 17 description: This is main Program file for the Multiple Data Compression(MDC) in which i use file_open function for read the file and master_array function are used for to create master array —————————- revision 1.17 date: 2014/07/10 02:19:20; author: root; state: Exp; lines: +0 -1 *** empty log message *** —————————- revision 1.16 date: 2014/07/10 02:02:35; author: root; state: Exp; lines: +1 -0 *** empty log message *** —————————- revision 1.15 date: 2014/07/10 01:58:06; author: root; state: Exp; lines: +2 -1 Compression function are calling and some error solving —————————- revision 1.14 date: 2014/07/10 01:16:07; author: root; state: Exp; lines: +1 -1 *** empty log message *** —————————- revision 1.13 date: 2014/07/10 01:08:17; author: root; state: Exp; lines: +3 -3 *** empty log message *** —————————- revision 1.12 date: 2014/07/10 00:45:16; author: root; state: Exp; lines: +3 -3 *** empty log message *** —————————- revision 1.11 date: 2014/07/10 00:24:37; author: root; state: Exp; lines: +2 -1 *** empty log message *** —————————- revision 1.10 date: 2014/07/10 00:00:44; author: root; state: Exp; lines: +1 -1 *** empty log message *** —————————- revision 1.9 date: 2014/07/09 23:30:37; author: root; state: Exp; lines: +1 -1 *** empty log message *** —————————- revision 1.8 date: 2014/07/09 23:20:15; author: root; state: Exp; lines: +1 -1 *** empty log message *** —————————- revision 1.7 date: 2014/07/09 23:19:17; author: root; state: Exp; lines: +1 -0 *** empty log message *** —————————- revision 1.6 date: 2014/07/09 23:18:30; author: root; state: Exp; lines: +1 -1 error solved —————————- revision 1.5 date: 2014/07/09 23:12:49; author: root; state: Exp; lines: +3 -5 calling array length finding function —————————- revision 1.4 date: 2014/07/09 22:48:21; author: root; state: Exp; lines: +0 -43 Seprate Function from the main programe file to other function file —————————- revision 1.3 date: 2014/07/09 22:12:30; author: root; state: Exp; lines: +1 -1 error are removed by using adding ‘;’ —————————- revision 1.2 date: 2014/07/09 22:11:41; author: root; state: Exp; lines: +1 -1 some changes are done —————————- revision 1.1 date: 2014/07/09 22:00:46; author: root; state: Exp; Initial revision ============================================================================= RCS file: functionn.c,v Working file: functionn.c head: 1.40 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 40; selected revisions: 40 description: Function file in which we include all the project programme function —————————- revision 1.40 date: 2014/07/20 23:03:08; author: root; state: Exp; lines: +4 -7 *** empty log message *** —————————- revision 1.39 date: 2014/07/20 22:53:28; author: root; state: Exp; lines: +2 -0 *** empty log message *** —————————- revision 1.38 date: 2014/07/20 22:51:16; author: root; state: Exp; lines: +1 -1 *** empty log message *** —————————- revision 1.37 date: 2014/07/10 03:14:08; author: root; state: Exp; lines: +1 -1 *** empty log message *** —————————- revision 1.36 date: 2014/07/10 03:06:00; author: root; state: Exp; lines: +2 -1 *** empty log message *** —————————- revision 1.35 date: 2014/07/10 03:01:26; author: root; state: Exp; lines: +1 -0 *** empty log message *** —————————- revision 1.34 date: 2014/07/10 02:55:10; author: root; state: Exp; lines: +3 -3 *** empty log message *** —————————- revision 1.33 date: 2014/07/10 02:53:36; author: root; state: Exp; lines: +2 -2 *** empty log message *** —————————- revision 1.32 date: 2014/07/10 02:48:56; author: root; state: Exp; lines: +1 -1 *** empty log message *** —————————- revision 1.31 date: 2014/07/10 02:47:30; author: root; state: Exp; lines: +1 -1 *** empty log message *** —————————- revision 1.30 date: 2014/07/10 02:44:55; author: root; state: Exp; lines: +2 -2 *** empty log message *** —————————- revision 1.29 date: 2014/07/10 02:44:09; author: root; state: Exp; lines: +1 -1 *** empty log message *** —————————- revision 1.28 date: 2014/07/10 02:43:01; author: root; state: Exp; lines: +1 -1 *** empty log message *** —————————- revision 1.27 date: 2014/07/10 02:37:53; author: root; state: Exp; lines: +2 -2 *** empty log message *** —————————- revision 1.26 date: 2014/07/10 02:25:40; author: root; state: Exp; lines: +2 -1 *** empty log message *** —————————- revision 1.25 date: 2014/07/10 02:22:00; author: root; state: Exp; lines: +1 -1 *** empty log message *** —————————- revision 1.24 date: 2014/07/10 02:20:22; author: root; state: Exp; lines: +2 -2 *** empty log message *** —————————- revision 1.23 date: 2014/07/10 02:16:27; author: root; state: Exp; lines: +4 -2 *** empty log message *** —————————- revision 1.22 date: 2014/07/10 02:10:27; author: root; state: Exp; lines: +0 -1 *** empty log message *** —————————- revision 1.21 date: 2014/07/10 02:09:35; author: root; state: Exp; lines: +1 -1 *** empty log message *** —————————- revision 1.20 date: 2014/07/10 02:04:53; author: root; state: Exp; lines: +1 -1 *** empty log message *** —————————- revision 1.19 date: 2014/07/10 02:02:37; author: root; state: Exp; lines: +1 -1 *** empty log message *** —————————- revision 1.18 date: 2014/07/10 01:59:19; author: root; state: Exp; lines: +37 -5 function are added like compression , find_loc —————————- revision 1.17 date: 2014/07/10 01:17:45; author: root; state: Exp; lines: +2 -2 *** empty log message *** —————————- revision 1.16 date: 2014/07/10 01:17:03; author: root; state: Exp; lines: +2 -2 *** empty log message *** —————————- revision 1.15 date: 2014/07/10 01:16:10; author: root; state: Exp; lines: +6 -6 *** empty log message *** —————————- revision 1.14 date: 2014/07/10 01:08:20; author: root; state: Exp; lines: +4 -4 *** empty log message *** —————————- revision 1.13 date: 2014/07/10 00:59:54; author: root; state: Exp; lines: +2 -2 *** empty log message *** —————————- revision 1.12 date: 2014/07/10 00:58:40; author: root; state: Exp; lines: +3 -1 *** empty log message *** —————————- revision 1.11 date: 2014/07/10 00:47:46; author: root; state: Exp; lines: +1 -1 *** empty log message *** —————————- revision 1.10 date: 2014/07/10 00:34:36; author: root; state: Exp; lines: +1 -1 *** empty log message *** —————————- revision 1.9 date: 2014/07/10 00:24:38; author: root; state: Exp; lines: +1 -1 *** empty log message *** —————————- revision 1.8 date: 2014/07/10 00:00:46; author: root; state: Exp; lines: +1 -1 *** empty log message *** —————————- revision 1.7 date: 2014/07/09 23:58:19; author: root; state: Exp; lines: +3 -3 *** empty log message *** —————————- revision 1.6 date: 2014/07/09 23:44:07; author: root; state: Exp; lines: +2 -2 *** empty log message *** —————————- revision 1.5 date: 2014/07/09 23:42:38; author: root; state: Exp; lines: +1 -1 *** empty log message *** —————————- revision 1.4 date: 2014/07/09 23:41:17; author: root; state: Exp; lines: +3 -1 *** empty log message *** —————————- revision 1.3 date: 2014/07/09 23:33:39; author: root; state: Exp; lines: +1 -1 *** empty log message *** —————————- revision 1.2 date: 2014/07/09 23:14:59; author: root; state: Exp; lines: +12 -1 writing length_code function —————————- revision 1.1 date: 2014/07/09 22:49:49; author: root; state: Exp; Initial revision ============================================================================= RCS file: header.h,v Working file: header.h head: 1.8 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 8; selected revisions: 8 description: it is the source of the Header File In which we include stdio.h stdlib.h fcntl.h —————————- revision 1.8 date: 2014/07/10 02:04:52; author: root; state: Exp; lines: +1 -1 *** empty log message *** —————————- revision 1.7 date: 2014/07/10 01:58:53; author: root; state: Exp; lines: +2 -0 function declereton are added —————————- revision 1.6 date: 2014/07/10 01:16:09; author: root; state: Exp; lines: +1 -1 *** empty log message *** —————————- revision 1.5 date: 2014/07/10 01:08:18; author: root; state: Exp; lines: +1 -1 *** empty log message *** —————————- revision 1.4 date: 2014/07/09 23:22:55; author: root; state: Exp; lines: +1 -1 *** empty log message *** —————————- revision 1.3 date: 2014/07/09 23:14:13; author: root; state: Exp; lines: +1 -1 include array length_code decleration —————————- revision 1.2 date: 2014/07/09 22:49:06; author: root; state: Exp; lines: +9 -0 include header file math.h and string.h and function decleretion —————————- revision 1.1 date: 2014/07/09 22:07:17; author: root; state: Exp; Initial revision =============================================================================

Posted in Uncategorized | Leave a comment

Stack completed (using array).

RCS file for stacks:
RCS file: stack_using_array.c,v
Working file: stack_using_array.c
head: 1.18
branch:
locks: strict
root: 1.18
access list:
symbolic names:
keyword substitution: kv
total revisions: 18; selected revisions: 18
description:
gave the basic program for stack.
declared prototype for get_choice().
—————————-
revision 1.18 locked by: root;
date: 2014/07/23 03:02:57; author: root; state: Exp; lines: +14 -7
implemented condition for stack already created.
—————————-
revision 1.17
date: 2014/07/23 02:41:48; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.16
date: 2014/07/23 02:37:00; author: root; state: Exp; lines: +5 -0
implemented condition for stack empty.
—————————-
revision 1.15
date: 2014/07/23 02:34:46; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.14
date: 2014/07/23 02:33:48; author: root; state: Exp; lines: +7 -1
declared defination for function pop_stack().
gave prototype for function pop_stack().
—————————-
revision 1.13
date: 2014/07/23 02:30:33; author: root; state: Exp; lines: +1 -1
stack_overflow.
—————————-
revision 1.12
date: 2014/07/23 02:28:15; author: root; state: Exp; lines: +5 -0
implemented condition for stack full in push_stack().
—————————-
revision 1.11
date: 2014/07/23 02:25:39; author: root; state: Exp; lines: +1 -1
done changes in display_stack() fun.
—————————-
revision 1.10
date: 2014/07/23 02:24:17; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.9
date: 2014/07/23 02:22:54; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.8
date: 2014/07/23 02:21:10; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.7
date: 2014/07/23 02:19:57; author: root; state: Exp; lines: +8 -1
gave defination for function display_stack().
gave prototype for function display_stack().
—————————-
revision 1.6
date: 2014/07/23 02:16:20; author: root; state: Exp; lines: +10 -1
gave defination for function push_stack().
gave prototype for function push_stack().
—————————-
revision 1.5
date: 2014/07/23 02:11:01; author: root; state: Exp; lines: +9 -4
gave prototype for create_stack().
gave defination for create_stack().
—————————-
revision 1.4
date: 2014/07/23 02:06:51; author: root; state: Exp; lines: +1 -1
done chansges in switch.
—————————-
revision 1.3
date: 2014/07/23 02:04:13; author: root; state: Exp; lines: +19 -0
gave prototype and defination for function operation().
included header file stdlib.h.
—————————-
revision 1.2
date: 2014/07/23 02:00:55; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.1
date: 2014/07/23 01:58:32; author: root; state: Exp;
Initial revision
=============================================================================

Posted in Data Structures with C | Leave a comment

4 bit mdc successfully completed

RCS file: file.c,v
Working file: file.c
head: 1.16
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 16; selected revisions: 16
description:
starting
—————————-
revision 1.16
date: 2014/07/21 12:28:16; author: amardeep; state: Exp; lines: +2 -2
add function of decompression
—————————-
revision 1.15
date: 2014/07/21 11:58:43; author: amardeep; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.14
date: 2014/07/21 11:54:11; author: amardeep; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.13
date: 2014/07/21 11:48:25; author: amardeep; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.12
date: 2014/07/21 11:35:53; author: amardeep; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.11
date: 2014/07/21 11:33:48; author: amardeep; state: Exp; lines: +3 -2
*** empty log message ***
—————————-
revision 1.10
date: 2014/07/19 09:41:28; author: amardeep; state: Exp; lines: +1 -1
pass new argumentt
—————————-
revision 1.9
date: 2014/07/19 07:38:02; author: amardeep; state: Exp; lines: +5 -5
*** empty log message ***
—————————-
revision 1.8
date: 2014/07/19 06:45:05; author: amardeep; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.7
date: 2014/07/19 06:36:29; author: amardeep; state: Exp; lines: +4 -0
*** empty log message ***
—————————-
revision 1.6
date: 2014/07/19 05:59:01; author: amardeep; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.5
date: 2014/07/19 05:48:07; author: amardeep; state: Exp; lines: +4 -1
calling of codelength function
—————————-
revision 1.4
date: 2014/07/18 10:44:42; author: amardeep; state: Exp; lines: +2 -2
/ added
—————————-
revision 1.3
date: 2014/07/18 10:42:52; author: amardeep; state: Exp; lines: +8 -1
starting
—————————-
revision 1.2
date: 2014/07/18 07:34:12; author: amardeep; state: Exp; lines: +1 -1
argument passed argv[1]
—————————-
revision 1.1
date: 2014/07/18 07:31:37; author: amardeep; state: Exp;
Initial revision
=============================================================================

RCS file: function.c,v
Working file: function.c
head: 1.58
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 58; selected revisions: 58
description:
open_function
—————————-
revision 1.58
date: 2014/07/21 13:16:39; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.57
date: 2014/07/21 13:15:50; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.56
date: 2014/07/21 13:15:05; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.55
date: 2014/07/21 13:14:18; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.54
date: 2014/07/21 13:09:30; author: amardeep; state: Exp; lines: +3 -4
*** empty log message ***
—————————-
revision 1.53
date: 2014/07/21 13:06:21; author: amardeep; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.52
date: 2014/07/21 13:03:34; author: amardeep; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.51
date: 2014/07/21 13:01:46; author: amardeep; state: Exp; lines: +12 -6
split bytes
—————————-
revision 1.50
date: 2014/07/21 12:47:36; author: amardeep; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.49
date: 2014/07/21 12:45:41; author: amardeep; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.48
date: 2014/07/21 12:43:44; author: amardeep; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.47
date: 2014/07/21 12:41:49; author: amardeep; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.46
date: 2014/07/21 12:38:40; author: amardeep; state: Exp; lines: +0 -2
*** empty log message ***
—————————-
revision 1.45
date: 2014/07/21 12:37:32; author: amardeep; state: Exp; lines: +8 -7
*** empty log message ***
—————————-
revision 1.44
date: 2014/07/21 12:29:16; author: amardeep; state: Exp; lines: +18 -3
add decompression function
—————————-
revision 1.43
date: 2014/07/21 12:00:30; author: amardeep; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.42
date: 2014/07/21 11:55:29; author: amardeep; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.41
date: 2014/07/21 11:54:14; author: amardeep; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.40
date: 2014/07/21 11:52:01; author: amardeep; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.39
date: 2014/07/21 11:51:33; author: amardeep; state: Exp; lines: +1 -3
*** empty log message ***
—————————-
revision 1.38
date: 2014/07/21 11:49:56; author: amardeep; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.37
date: 2014/07/21 11:33:53; author: amardeep; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.36
date: 2014/07/19 10:27:47; author: amardeep; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.35
date: 2014/07/19 10:21:17; author: amardeep; state: Exp; lines: +4 -2
*** empty log message ***
—————————-
revision 1.34
date: 2014/07/19 07:38:11; author: amardeep; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.33
date: 2014/07/19 07:35:58; author: amardeep; state: Exp; lines: +3 -2
*** empty log message ***
—————————-
revision 1.32
date: 2014/07/19 07:33:22; author: amardeep; state: Exp; lines: +1 -0
compression is done successfully
—————————-
revision 1.31
date: 2014/07/19 07:32:12; author: amardeep; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.30
date: 2014/07/19 07:30:24; author: amardeep; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.29
date: 2014/07/19 07:26:50; author: amardeep; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.28
date: 2014/07/19 07:25:08; author: amardeep; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.27
date: 2014/07/19 07:21:09; author: amardeep; state: Exp; lines: +1 -0
add write function
—————————-
revision 1.26
date: 2014/07/19 07:18:54; author: amardeep; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.25
date: 2014/07/19 07:17:33; author: amardeep; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.24
date: 2014/07/19 07:15:57; author: amardeep; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.23
date: 2014/07/19 07:09:19; author: amardeep; state: Exp; lines: +1 -1
add byte
—————————-
revision 1.22
date: 2014/07/19 07:08:28; author: amardeep; state: Exp; lines: +3 -5
*** empty log message ***
—————————-
revision 1.21
date: 2014/07/19 07:06:34; author: amardeep; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.20
date: 2014/07/19 07:05:48; author: amardeep; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.19
date: 2014/07/19 07:02:55; author: amardeep; state: Exp; lines: +9 -3
*** empty log message ***
—————————-
revision 1.18
date: 2014/07/19 06:54:15; author: amardeep; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.17
date: 2014/07/19 06:52:26; author: amardeep; state: Exp; lines: +1 -3
*** empty log message ***
—————————-
revision 1.16
date: 2014/07/19 06:51:14; author: amardeep; state: Exp; lines: +4 -1
*** empty log message ***
—————————-
revision 1.15
date: 2014/07/19 06:45:58; author: amardeep; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.14
date: 2014/07/19 06:45:07; author: amardeep; state: Exp; lines: +9 -8
*** empty log message ***
—————————-
revision 1.13
date: 2014/07/19 06:39:09; author: amardeep; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.12
date: 2014/07/19 06:38:37; author: amardeep; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.11
date: 2014/07/19 06:37:19; author: amardeep; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.10
date: 2014/07/19 06:36:33; author: amardeep; state: Exp; lines: +22 -0
*** empty log message ***
—————————-
revision 1.9
date: 2014/07/19 06:01:45; author: amardeep; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.8
date: 2014/07/19 06:01:02; author: amardeep; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.7
date: 2014/07/19 05:59:03; author: amardeep; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.6
date: 2014/07/19 05:55:42; author: amardeep; state: Exp; lines: +3 -1
*** empty log message ***
—————————-
revision 1.5
date: 2014/07/19 05:53:52; author: amardeep; state: Exp; lines: +3 -1
*** empty log message ***
—————————-
revision 1.4
date: 2014/07/19 05:49:34; author: amardeep; state: Exp; lines: +10 -0
definition of function code_length
—————————-
revision 1.3
date: 2014/07/18 10:43:22; author: amardeep; state: Exp; lines: +27 -0
function addition
—————————-
revision 1.2
date: 2014/07/18 07:43:27; author: amardeep; state: Exp; lines: +1 -1
add headerfile
—————————-
revision 1.1
date: 2014/07/18 07:31:37; author: amardeep; state: Exp;
Initial revision
=============================================================================

RCS file: header.h,v
Working file: header.h
head: 1.10
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 10; selected revisions: 10
description:
stdio.h
stdlib.h
fcntl.h
—————————-
revision 1.10
date: 2014/07/21 12:28:40; author: amardeep; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.9
date: 2014/07/21 11:58:44; author: amardeep; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.8
date: 2014/07/21 11:55:27; author: amardeep; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.7
date: 2014/07/21 11:54:12; author: amardeep; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.6
date: 2014/07/21 11:33:52; author: amardeep; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.5
date: 2014/07/19 09:41:48; author: amardeep; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.4
date: 2014/07/19 07:38:09; author: amardeep; state: Exp; lines: +5 -1
*** empty log message ***
—————————-
revision 1.3
date: 2014/07/19 05:51:06; author: amardeep; state: Exp; lines: +1 -1
comment
—————————-
revision 1.2
date: 2014/07/19 05:48:48; author: amardeep; state: Exp; lines: +3 -0
add new header file
#include
#include
—————————-
revision 1.1
date: 2014/07/18 07:31:37; author: amardeep; state: Exp;
Initial revision
=============================================================================

Posted in Data Structures with C | Leave a comment

rcs file for addition of two matrices (by passing two matrices as arguments to function)

RCS file: ./17_add_matrix.c,v
Working file: ./17_add_matrix.c
head: 1.2
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 2;     selected revisions: 2
description:
gave prototype for function get_matrices().
gave prototype for function add_matrices().
gave prototype for function disp_matrices().
—————————-
revision 1.2
date: 2014/07/21 12:38:54;  author: root;  state: Exp;  lines: +1 -1
implemented defination for functions get_matrices(),add_matrices(),disp_matrices().
—————————-
revision 1.1
date: 2014/07/21 12:36:19;  author: root;  state: Exp;
Initial revision
=============================================================================

Posted in Data Structures with C | Leave a comment

rlog /mdc 4bit/ complete using functions

RCS file: my_fnts.c,v
Working file: my_fnts.c
head: 1.56
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 56; selected revisions: 56
description:
funtions moved to this file
—————————-
revision 1.56
date: 2014/07/21 12:24:34; author: root; state: Exp; lines: +1 -1
changes
—————————-
revision 1.55
date: 2014/07/21 12:22:31; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.54
date: 2014/07/21 12:21:06; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.53
date: 2014/07/21 12:17:16; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.52
date: 2014/07/21 12:14:48; author: root; state: Exp; lines: +3 -1
*** empty log message ***
—————————-
revision 1.51
date: 2014/07/21 12:12:24; author: root; state: Exp; lines: +2 -4
*** empty log message ***
—————————-
revision 1.50
date: 2014/07/21 12:10:24; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.49
date: 2014/07/21 12:06:09; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.48
date: 2014/07/21 11:57:05; author: root; state: Exp; lines: +3 -2
*** empty log message ***
—————————-
revision 1.47
date: 2014/07/21 11:52:56; author: root; state: Exp; lines: +2 -5
*** empty log message ***
—————————-
revision 1.46
date: 2014/07/21 11:51:06; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.45
date: 2014/07/21 11:48:39; author: root; state: Exp; lines: +4 -0
*** empty log message ***
—————————-
revision 1.44
date: 2014/07/21 11:39:28; author: root; state: Exp; lines: +4 -0
l seek added
—————————-
revision 1.43
date: 2014/07/21 11:32:15; author: root; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.42
date: 2014/07/21 11:28:46; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.41
date: 2014/07/21 11:27:36; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.40
date: 2014/07/21 11:24:58; author: root; state: Exp; lines: +30 -0
decompression functon is defined
—————————-
revision 1.39
date: 2014/07/19 12:06:15; author: root; state: Exp; lines: +3 -2
*** empty log message ***
—————————-
revision 1.38
date: 2014/07/19 11:58:49; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.37
date: 2014/07/19 11:53:54; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.36
date: 2014/07/19 11:50:13; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.35
date: 2014/07/19 11:36:51; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.34
date: 2014/07/19 11:33:37; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.33
date: 2014/07/19 11:30:13; author: root; state: Exp; lines: +5 -5
*** empty log message ***
—————————-
revision 1.32
date: 2014/07/19 11:18:57; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.31
date: 2014/07/19 11:17:19; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.30
date: 2014/07/19 11:12:04; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.29
date: 2014/07/19 10:59:56; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.28
date: 2014/07/19 10:55:20; author: root; state: Exp; lines: +4 -1
/
—————————-
revision 1.27
date: 2014/07/19 10:51:35; author: root; state: Exp; lines: +3 -2
*** empty log message ***
—————————-
revision 1.26
date: 2014/07/19 10:45:45; author: root; state: Exp; lines: +4 -5
*** empty log message ***
—————————-
revision 1.25
date: 2014/07/19 10:38:20; author: root; state: Exp; lines: +22 -17
*** empty log message ***
—————————-
revision 1.24
date: 2014/07/19 10:20:19; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.23
date: 2014/07/19 10:18:07; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.22
date: 2014/07/19 10:13:21; author: root; state: Exp; lines: +3 -4
*** empty log message ***
—————————-
revision 1.21
date: 2014/07/19 10:03:15; author: root; state: Exp; lines: +5 -2
*** empty log message ***
—————————-
revision 1.20
date: 2014/07/19 09:56:01; author: root; state: Exp; lines: +4 -3
*** empty log message ***
—————————-
revision 1.19
date: 2014/07/19 09:49:41; author: root; state: Exp; lines: +3 -2
*** empty log message ***
—————————-
revision 1.18
date: 2014/07/19 09:47:48; author: root; state: Exp; lines: +4 -4
*** empty log message ***
—————————-
revision 1.17
date: 2014/07/19 09:45:26; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.16
date: 2014/07/19 09:40:54; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.15
date: 2014/07/19 09:32:13; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.14
date: 2014/07/19 09:30:42; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.13
date: 2014/07/19 09:20:46; author: root; state: Exp; lines: +28 -22
loops used to print every encryped char
—————————-
revision 1.12
date: 2014/07/19 08:32:15; author: root; state: Exp; lines: +1 -1
type defined
—————————-
revision 1.11
date: 2014/07/19 08:31:02; author: root; state: Exp; lines: +33 -0
compress function defined
—————————-
revision 1.10
date: 2014/07/19 07:32:11; author: root; state: Exp; lines: +9 -7
null added
—————————-
revision 1.9
date: 2014/07/19 07:24:55; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.8
date: 2014/07/19 07:23:04; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.7
date: 2014/07/19 07:06:51; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.6
date: 2014/07/19 07:01:08; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.5
date: 2014/07/19 06:46:27; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.4
date: 2014/07/19 06:43:47; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.3
date: 2014/07/19 06:33:01; author: root; state: Exp; lines: +4 -1
null character added
—————————-
revision 1.2
date: 2014/07/19 06:24:55; author: root; state: Exp; lines: +1 -1
changes
—————————-
revision 1.1
date: 2014/07/19 06:15:53; author: root; state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Leave a comment

link list is completed successfully

RCS file: cw2.c,v
Working file: cw2.c
head:
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 0
description:
link list is completed
=============================================================================

Posted in Data Structures with C | Leave a comment

rlog file for inserting link list

RCS file: ll.c,v
Working file: ll.c
head: 1.5
branch:
locks: strict
root: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5;    selected revisions: 5
description:
creat function added
insert function added
—————————-
revision 1.5    locked by: root;
date: 2014/07/21 09:18:33;  author: root;  state: Exp;  lines: +31 -32
*** empty log message ***
—————————-
revision 1.4
date: 2014/07/21 08:44:09;  author: root;  state: Exp;  lines: +1 -1
some changes
—————————-
revision 1.3
date: 2014/07/21 08:43:16;  author: root;  state: Exp;  lines: +24 -8
display function added
—————————-
revision 1.2
date: 2014/07/21 08:35:29;  author: root;  state: Exp;  lines: +8 -2
loop added
—————————-
revision 1.1
date: 2014/07/21 08:33:01;  author: root;  state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Leave a comment

rlog/link list creation ,insertion /using functions

RCS file: ll.c,v
Working file: ll.c
head: 1.5
branch:
locks: strict
root: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5; selected revisions: 5
description:
creat function added
insert function added
—————————-
revision 1.5 locked by: root;
date: 2014/07/21 09:18:33; author: root; state: Exp; lines: +31 -32
*** empty log message ***
—————————-
revision 1.4
date: 2014/07/21 08:44:09; author: root; state: Exp; lines: +1 -1
some changes
—————————-
revision 1.3
date: 2014/07/21 08:43:16; author: root; state: Exp; lines: +24 -8
display function added
—————————-
revision 1.2
date: 2014/07/21 08:35:29; author: root; state: Exp; lines: +8 -2
loop added
—————————-
revision 1.1
date: 2014/07/21 08:33:01; author: root; state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Leave a comment

rlog file of linklist using function ……………

RCS file: functionlink.c,v
3 Working file: functionlink.c
4 head: 1.2
5 branch:
6 locks: strict
7 access list:
8 symbolic names:
9 keyword substitution: kv
10 total revisions: 2;     selected revisions: 2
11 description:
12 making link list using Functions.
13 —————————-
14 revision 1.2
15 date: 2014/07/20 14:07:47;  author: root;  state: Exp;  lines: +2 -2
16 *** empty log message ***
17 —————————-
18 revision 1.1
19 date: 2014/07/20 14:06:29;  author: root;  state: Exp;
20 Initial revision
21 =============================================================================

Posted in Uncategorized | Leave a comment

Rlog File of link list Program without using Function……..

2 RCS file: link.c,v
3 Working file: link.c
4 head: 1.2
5 branch:
6 locks: strict
7 access list:
8 symbolic names:
9 keyword substitution: kv
10 total revisions: 2;     selected revisions: 2
11 description:
12 making link list without Function.
13 —————————-
14 revision 1.2
15 date: 2014/07/20 14:10:37;  author: root;  state: Exp;  lines: +3 -3
16 *** empty log message ***
17 —————————-
18 revision 1.1
19 date: 2014/07/20 14:09:49;  author: root;  state: Exp;
20 Initial revision
21 =============================================================================

Posted in Uncategorized | Leave a comment

Program to find factorial of number n using recursive function.

RCS file: ./9_factorial.c,v
Working file: ./9_factorial.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;     selected revisions: 1
description:
gave prototype for factorial().
gave defination for function factorial().
—————————-
revision 1.1    locked by: root;
date: 2014/07/21 06:13:28;  author: root;  state: Exp;
Initial revision
=============================================================================

Posted in Data Structures with C | Leave a comment

Program to print fibonacci series upto n terms using recursive function.

RCS file: 10_fibonacci.c,v
Working file: 10_fibonacci.c
head: 1.2
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 2;     selected revisions: 2
description:
write basic program for finding fibonacci series upto n terms.
—————————-
revision 1.2
date: 2014/07/21 05:59:58;  author: root;  state: Exp;  lines: +21 -5
gave defination for function fibonacci();
gave prototype for function fibonacci();.
—————————-
revision 1.1
date: 2014/07/21 05:22:44;  author: root;  state: Exp;
Initial revision
=============================================================================

Posted in Data Structures with C | Leave a comment

Header file for double linklist : (All functions implemented except for a few in the misc menu)

1 #include<stdio.h>
2 #include<stdlib.h>
3
4 struct node
5 {
6         int info;
7         struct node *next;
8         struct node *prev;
9 };
10
11
12 void mem_fail();                          // report failure of memory allocation and exit the program.
13 void traverse(struct node *);             // traverse the linklist, given the start node.
14 int search(struct node *);
15 struct node *get_node();                  // return a new node to the caller.
16 struct node *op_menu(struct node *, int); // maps the choice of the user to its corresponsing operation on the linklist.
17 struct node *insert_menu(struct node *);  // contains the different options for the insertion of a node in  the linklist.
18 struct node *insert(struct node *, int);  // maps the user choice for inserting a node to its corresponding function.
19 struct node *insert_end(struct node *, struct node *);
20 struct node *insert_beg(struct node *, struct node *);
21 struct node *insert_at_pos(struct node *, struct node *);
22 struct node *insert_after_key(struct node *, struct node *);
23 struct node *delete_menu(struct node *);
24 struct node *delete_node(struct node *, int);
25 struct node *delete_end(struct node *);
26 struct node *delete_beg(struct node *);
27 struct node *delete_nth(struct node *);
28 struct node *delete_key(struct node *);
29 struct node *misc_menu(struct node *);
30 struct node *misc_op(struct node *, int);
31 void print_reverse_list(struct node *);
~
~
~
“header.h” 31L, 1365C                                                                                                               30,1          All

Posted in Uncategorized | Leave a comment

difference between monolithic and microlithic kernel

Monolithic Kernel (Macro Kernel): Kernel Image = (Kernel Core+Kernel Services). When system boots up entire services  are loaded and resides in memory.

Example: Windows and Unix.

 

Micro kernel : Kernel Image = Kernel Core. Services are build in to special modules which can be loaded and unloaded as per need.

 

We have another type of kernel integration technique called

Modular, this is derived from best of micro and monolithic kernel) In

Modular kernel integration:  Kernel Image = (Kernel core + IPC service modules +Memory  module +Process Management module). All other modules are loadable kernel modules.

Example: Linux kernel

Posted in Project 00: Linux System / Network Administration | Leave a comment

function to detect comon node in two linked lists and correct them.

int fix_cnode(struct node **start, struct node **start1)
{
struct node *temp,**ma,*temp1;
int count = 0,i,flag =1;
temp = *start;
ma = calloc(sizeof(struct node *),20);
while(1)
{
flag = 1;
if(!(temp->next))
{
printf(“there is no loop\n”);
goto o;
}
for(i=0; i<count; i++)
{
if(temp->next == *(ma+i))
flag = 0;
break;

}
if(flag == 1)
{
*(ma+(count)) = temp;
printf(“%d\n”,*(ma+count));
count++;
}
printf(”                            count = %d\n”,count);
temp = temp->next;

}
o:        temp = *start1;
for(i = 0; i<count; i++)
{
if(temp->next == *(ma+i))
break;
temp = temp->next;
}
printf(“common node is detected at %d\n”,temp->next->info);
temp ->next= NULL;
return 0;

}

Posted in Uncategorized | Leave a comment