EmbLogic's Blog

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

Operation on linklist : create, insert node(at end, in beginning, at nth position, after a key value), delete node(same as insert), traverse, search

1
2 RCS file: main.c,v
3 Working file: main.c
4 head: 1.21
5 branch:
6 locks: strict
7 access list:
8 symbolic names:
9 keyword substitution: kv
10 total revisions: 21;    selected revisions: 21
11 description:
12 Implementing the operations on a linklist.
13 —————————-
14 revision 1.21
15 date: 2014/07/19 19:07:29;  author: root;  state: Exp;  lines: +3 -0
16 All functions implemented and tested.
17 All functions tested ok.
18 Program is running as expected.
19 Done with double linklist.
20 —————————-
21 revision 1.20
22 date: 2014/07/19 19:00:30;  author: root;  state: Exp;  lines: +29 -4
23 Insert function tested completely.
24 Insert function is working fine in this revision.
25 —————————-
26 revision 1.19
27 date: 2014/07/19 18:38:49;  author: root;  state: Exp;  lines: +102 -28
28 testing all the functions.
29 Seg fault in the insert function.
30 —————————-
31 revision 1.18
32 date: 2014/07/19 17:57:19;  author: root;  state: Exp;  lines: +2 -0
33 Previous cause for seg fault removed.
34 again seg fault.
35 —————————-
36 revision 1.17
“log_file” 118L, 4270C                                                                                                              1,0-1         Top

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

function to detect a loop in linked list and remove the loop.

int fix_loop(struct node **start)// pass start as a pass by reference argument
{
struct node *temp,**ma;
int count = 0,i;
temp = *start;
ma = calloc(sizeof(struct node *),20);
while(1)
{
if(!(temp->next))
{
printf(“there is no loop\n”);
return -1;
}
for(i=0; i<count; i++)
{
if(temp->next == *(ma+i))// create a master array which contains all the unique addresses
goto o;
//            printf(“i = %d\n”,i);

}
printf(”                            count = %d\n”,count);
*(ma+(count)) = temp;
count++;
//        ma = realloc(ma,count+1);
temp = temp->next;

}
o:    temp->next= NULL;
printf(“loop!! fixed\n”);
free(ma);
return 0;
}

Posted in Uncategorized | Leave a comment