EmbLogic's Blog

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

C++ : simple program in linux.

RCS file: ./simple.cpp,v
Working file: ./simple.cpp
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
printing “My name is Ruchi”using
string mystring
—————————-
revision 1.1
date: 2014/06/06 12:46:39; author: root; state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Tagged | Leave a comment

rlog\structure assignment/4

RCS file: prog4.c,v
Working file: prog4.c
head: 1.29
branch:
locks: strict
root: 1.29
access list:
symbolic names:
keyword substitution: kv
total revisions: 29;    selected revisions: 29
description:
add student record complete
—————————-
revision 1.29    locked by: root;
date: 2014/07/20 12:00:57;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.28
date: 2014/07/20 11:37:55;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.27
date: 2014/07/20 11:36:06;  author: root;  state: Exp;  lines: +41 -0
sorting function added
—————————-
revision 1.26
date: 2014/07/20 10:45:40;  author: root;  state: Exp;  lines: +6 -6
*** empty log message ***
—————————-
revision 1.25
date: 2014/07/20 10:42:30;  author: root;  state: Exp;  lines: +8 -2
*** empty log message ***
—————————-
revision 1.24
date: 2014/07/20 10:37:29;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.23
date: 2014/07/20 10:35:12;  author: root;  state: Exp;  lines: +5 -5
*** empty log message ***
—————————-
revision 1.22
date: 2014/07/20 10:31:59;  author: root;  state: Exp;  lines: +1 -0
*** empty log message ***
—————————-
revision 1.21
date: 2014/07/20 10:29:43;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.20
date: 2014/07/20 10:28:28;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.19
date: 2014/07/20 10:26:01;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.18
date: 2014/07/20 10:23:19;  author: root;  state: Exp;  lines: +13 -0
comlete avg
—————————-
revision 1.17
date: 2014/07/20 10:08:34;  author: root;  state: Exp;  lines: +2 -1
*** empty log message ***
—————————-
revision 1.16
date: 2014/07/20 10:08:05;  author: root;  state: Exp;  lines: +4 -3
*** empty log message ***
—————————-
revision 1.15
date: 2014/07/20 10:04:32;  author: root;  state: Exp;  lines: +1 -1
error solved
—————————-
revision 1.14
date: 2014/07/20 10:03:24;  author: root;  state: Exp;  lines: +18 -0
complet view function
—————————-
revision 1.13
date: 2014/07/20 09:49:08;  author: root;  state: Exp;  lines: +10 -2
complet the update function
—————————-
revision 1.12
date: 2014/07/20 09:40:06;  author: root;  state: Exp;  lines: +8 -6
*** empty log message ***
—————————-
revision 1.11
date: 2014/07/20 09:38:27;  author: root;  state: Exp;  lines: +3 -3
*** empty log message ***
—————————-
revision 1.10
date: 2014/07/20 09:37:06;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.9
date: 2014/07/20 09:33:53;  author: root;  state: Exp;  lines: +33 -2
update
—————————-
revision 1.8
date: 2014/07/20 09:06:42;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.7
date: 2014/07/20 09:05:14;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.6
date: 2014/07/20 09:04:25;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.5
date: 2014/07/20 09:02:19;  author: root;  state: Exp;  lines: +1 -1
\.
—————————-
revision 1.4
date: 2014/07/20 09:00:54;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2014/07/20 08:59:29;  author: root;  state: Exp;  lines: +1 -1
changes
—————————-
revision 1.2
date: 2014/07/20 08:55:08;  author: root;  state: Exp;  lines: +22 -1
delete funtion added
—————————-
revision 1.1
date: 2014/07/20 08:43:14;  author: root;  state: Exp;
Initial revision
=============================================================================
RCS file: prog4.c,v
Working file: prog4.c
head: 1.29
branch:
locks: strict
root: 1.29
access list:
symbolic names:
keyword substitution: kv
total revisions: 29;    selected revisions: 29
description:
add student record complete
—————————-
revision 1.29    locked by: root;
date: 2014/07/20 12:00:57;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.28
date: 2014/07/20 11:37:55;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.27
date: 2014/07/20 11:36:06;  author: root;  state: Exp;  lines: +41 -0
sorting function added
—————————-
revision 1.26
date: 2014/07/20 10:45:40;  author: root;  state: Exp;  lines: +6 -6
*** empty log message ***
—————————-
revision 1.25
date: 2014/07/20 10:42:30;  author: root;  state: Exp;  lines: +8 -2
*** empty log message ***
—————————-
revision 1.24
date: 2014/07/20 10:37:29;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.23
date: 2014/07/20 10:35:12;  author: root;  state: Exp;  lines: +5 -5
*** empty log message ***
—————————-
revision 1.22
date: 2014/07/20 10:31:59;  author: root;  state: Exp;  lines: +1 -0
*** empty log message ***
—————————-
revision 1.21
date: 2014/07/20 10:29:43;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.20
date: 2014/07/20 10:28:28;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.19
date: 2014/07/20 10:26:01;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.18
date: 2014/07/20 10:23:19;  author: root;  state: Exp;  lines: +13 -0
comlete avg
—————————-
revision 1.17
date: 2014/07/20 10:08:34;  author: root;  state: Exp;  lines: +2 -1
*** empty log message ***
—————————-
revision 1.16
date: 2014/07/20 10:08:05;  author: root;  state: Exp;  lines: +4 -3
*** empty log message ***
—————————-
revision 1.15
date: 2014/07/20 10:04:32;  author: root;  state: Exp;  lines: +1 -1
error solved
—————————-
revision 1.14
date: 2014/07/20 10:03:24;  author: root;  state: Exp;  lines: +18 -0
complet view function
—————————-
revision 1.13
date: 2014/07/20 09:49:08;  author: root;  state: Exp;  lines: +10 -2
complet the update function
—————————-
revision 1.12
date: 2014/07/20 09:40:06;  author: root;  state: Exp;  lines: +8 -6
*** empty log message ***
—————————-
revision 1.11
date: 2014/07/20 09:38:27;  author: root;  state: Exp;  lines: +3 -3
*** empty log message ***
—————————-
revision 1.10
date: 2014/07/20 09:37:06;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.9
date: 2014/07/20 09:33:53;  author: root;  state: Exp;  lines: +33 -2
update
—————————-
revision 1.8
date: 2014/07/20 09:06:42;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.7
date: 2014/07/20 09:05:14;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.6
date: 2014/07/20 09:04:25;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.5
date: 2014/07/20 09:02:19;  author: root;  state: Exp;  lines: +1 -1
\.
—————————-
revision 1.4
date: 2014/07/20 09:00:54;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2014/07/20 08:59:29;  author: root;  state: Exp;  lines: +1 -1
changes
—————————-
revision 1.2
date: 2014/07/20 08:55:08;  author: root;  state: Exp;  lines: +22 -1
delete funtion added
—————————-
revision 1.1
date: 2014/07/20 08:43:14;  author: root;  state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Leave a comment

log file of student record program

RCS file: prog4.c,v
Working file: prog4.c
head: 1.29
branch:
locks: strict
root: 1.29
access list:
symbolic names:
keyword substitution: kv
total revisions: 29;    selected revisions: 29
description:
add student record complete
—————————-
revision 1.29    locked by: root;
date: 2014/07/20 12:00:57;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.28
date: 2014/07/20 11:37:55;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.27
date: 2014/07/20 11:36:06;  author: root;  state: Exp;  lines: +41 -0
sorting function added
—————————-
revision 1.26
date: 2014/07/20 10:45:40;  author: root;  state: Exp;  lines: +6 -6
*** empty log message ***
—————————-
revision 1.25
date: 2014/07/20 10:42:30;  author: root;  state: Exp;  lines: +8 -2
*** empty log message ***
—————————-
revision 1.24
date: 2014/07/20 10:37:29;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.23
date: 2014/07/20 10:35:12;  author: root;  state: Exp;  lines: +5 -5
*** empty log message ***
—————————-
revision 1.22
date: 2014/07/20 10:31:59;  author: root;  state: Exp;  lines: +1 -0
*** empty log message ***
—————————-
revision 1.21
date: 2014/07/20 10:29:43;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.20
date: 2014/07/20 10:28:28;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.19
date: 2014/07/20 10:26:01;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.18
date: 2014/07/20 10:23:19;  author: root;  state: Exp;  lines: +13 -0
comlete avg
—————————-
revision 1.17
date: 2014/07/20 10:08:34;  author: root;  state: Exp;  lines: +2 -1
*** empty log message ***
—————————-
revision 1.16
date: 2014/07/20 10:08:05;  author: root;  state: Exp;  lines: +4 -3
*** empty log message ***
—————————-
revision 1.15
date: 2014/07/20 10:04:32;  author: root;  state: Exp;  lines: +1 -1
error solved
—————————-
revision 1.14
date: 2014/07/20 10:03:24;  author: root;  state: Exp;  lines: +18 -0
complet view function
—————————-
revision 1.13
date: 2014/07/20 09:49:08;  author: root;  state: Exp;  lines: +10 -2
complet the update function
—————————-
revision 1.12
date: 2014/07/20 09:40:06;  author: root;  state: Exp;  lines: +8 -6
*** empty log message ***
—————————-
revision 1.11
date: 2014/07/20 09:38:27;  author: root;  state: Exp;  lines: +3 -3
*** empty log message ***
—————————-
revision 1.10
date: 2014/07/20 09:37:06;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.9
date: 2014/07/20 09:33:53;  author: root;  state: Exp;  lines: +33 -2
update
—————————-
revision 1.8
date: 2014/07/20 09:06:42;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.7
date: 2014/07/20 09:05:14;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.6
date: 2014/07/20 09:04:25;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.5
date: 2014/07/20 09:02:19;  author: root;  state: Exp;  lines: +1 -1
\.
—————————-
revision 1.4
date: 2014/07/20 09:00:54;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2014/07/20 08:59:29;  author: root;  state: Exp;  lines: +1 -1
changes
—————————-
revision 1.2
date: 2014/07/20 08:55:08;  author: root;  state: Exp;  lines: +22 -1
delete funtion added
—————————-
revision 1.1
date: 2014/07/20 08:43:14;  author: root;  state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Leave a comment

rlog /assignment struct ,4/

RCS file: prog4.c,v
Working file: prog4.c
head: 1.29
branch:
locks: strict
root: 1.29
access list:
symbolic names:
keyword substitution: kv
total revisions: 29; selected revisions: 29
description:
add student record complete
—————————-
revision 1.29 locked by: root;
date: 2014/07/20 12:00:57; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.28
date: 2014/07/20 11:37:55; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.27
date: 2014/07/20 11:36:06; author: root; state: Exp; lines: +41 -0
sorting function added
—————————-
revision 1.26
date: 2014/07/20 10:45:40; author: root; state: Exp; lines: +6 -6
*** empty log message ***
—————————-
revision 1.25
date: 2014/07/20 10:42:30; author: root; state: Exp; lines: +8 -2
*** empty log message ***
—————————-
revision 1.24
date: 2014/07/20 10:37:29; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.23
date: 2014/07/20 10:35:12; author: root; state: Exp; lines: +5 -5
*** empty log message ***
—————————-
revision 1.22
date: 2014/07/20 10:31:59; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.21
date: 2014/07/20 10:29:43; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.20
date: 2014/07/20 10:28:28; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.19
date: 2014/07/20 10:26:01; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.18
date: 2014/07/20 10:23:19; author: root; state: Exp; lines: +13 -0
comlete avg
—————————-
revision 1.17
date: 2014/07/20 10:08:34; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.16
date: 2014/07/20 10:08:05; author: root; state: Exp; lines: +4 -3
*** empty log message ***
—————————-
revision 1.15
date: 2014/07/20 10:04:32; author: root; state: Exp; lines: +1 -1
error solved
—————————-
revision 1.14
date: 2014/07/20 10:03:24; author: root; state: Exp; lines: +18 -0
complet view function
—————————-
revision 1.13
date: 2014/07/20 09:49:08; author: root; state: Exp; lines: +10 -2
complet the update function
—————————-
revision 1.12
date: 2014/07/20 09:40:06; author: root; state: Exp; lines: +8 -6
*** empty log message ***
—————————-
revision 1.11
date: 2014/07/20 09:38:27; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.10
date: 2014/07/20 09:37:06; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.9
date: 2014/07/20 09:33:53; author: root; state: Exp; lines: +33 -2
update
—————————-
revision 1.8
date: 2014/07/20 09:06:42; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.7
date: 2014/07/20 09:05:14; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.6
date: 2014/07/20 09:04:25; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.5
date: 2014/07/20 09:02:19; author: root; state: Exp; lines: +1 -1
\.
—————————-
revision 1.4
date: 2014/07/20 09:00:54; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2014/07/20 08:59:29; author: root; state: Exp; lines: +1 -1
changes
—————————-
revision 1.2
date: 2014/07/20 08:55:08; author: root; state: Exp; lines: +22 -1
delete funtion added
—————————-
revision 1.1
date: 2014/07/20 08:43:14; author: root; state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Leave a comment

Started work on Sculldev and Scullqset

struct Sculldev
{
struct Scullqset *scullqset;

};

struct Scullqset
{
void **data;
struct Scullqset *next;
};
====================================================================================================
RCS file: ./scull.c,v
Working file: ./scull.c
head: 1.3
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
Started the scullset and scullqset for drivers.
—————————-
revision 1.3
date: 2014/07/20 11:16:22; author: utkarsh; state: Exp; lines: +11 -3
With an option of writing in the file, and read hundred characters from the pre-created file.
Stored the characters into the structures scullqset.
—————————-
revision 1.2
date: 2014/07/18 19:52:25; author: utkarsh; state: Exp; lines: +100 -8
Implemented the required structure. And used the void **data.
—————————-
revision 1.1
date: 2014/07/18 09:33:35; author: utkarsh; state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Leave a comment

Linklist management program, with an included option of detecting a loop in it.

To check the working of Detect_Loop function, i have created a loop for the first time when we add elements at the end.
After then it is fine, and normal again.
I have removed, almost every minute bugs in the program.
In this program you will never get a segmentation fault. Also your program will never terminate undesirably. Even if you enter multiple character at the menu..

==========================================
MAIN MENU
==========================================
1. Create link list
2. Insert elements.
3. Update an element.
4. View the linklist.
5. Delete an element.
6. Find an element.
7. Exit.
8. Detect a loop
Enter your choice:

===========================================
INSERT_MENU
==========================================
1. Insert at the end.
2. Insert at the top.
3. Insert after nth element.
4. Insert after key element.
5. Return to main menu.
6. Exit.
Enter your choice:

====================================================================================================
RCS file: ./linklist.c,v
Working file: ./linklist.c
head: 1.9
branch:
locks: strict
utkarsh: 1.9
access list:
symbolic names:
keyword substitution: kv
total revisions: 9; selected revisions: 9
description:
Completed upto view and insert.
Debugging messages are present in the code.
—————————-
revision 1.9 locked by: utkarsh;
date: 2014/07/20 10:40:07; author: utkarsh; state: Exp; lines: +17 -2
Added an option for restricted view, depends on user to see the number
of elements to be displayed. Reliable in a linklist with a loop within itself.
—————————-
revision 1.8
date: 2014/07/20 10:30:34; author: utkarsh; state: Exp; lines: +113 -78
Added an option of detecting a loop.
Restricted view to 15 elements only.
—————————-
revision 1.7
date: 2014/07/20 06:01:24; author: utkarsh; state: Exp; lines: +92 -13
Some extra bugs removed, which were returning Segmentation Fault on some occassions.
—————————-
revision 1.6
date: 2014/07/19 20:24:54; author: utkarsh; state: Exp; lines: +40 -1
Created the next function, Insertatn().
—————————-
revision 1.5
date: 2014/07/19 19:58:36; author: utkarsh; state: Exp; lines: +84 -18
Made an insert menu. With insert at top, insert at end implemented.
—————————-
revision 1.4
date: 2014/07/19 15:55:46; author: utkarsh; state: Exp; lines: +45 -20
Completed the whole linklist. Garbage code included.
—————————-
revision 1.3
date: 2014/07/19 08:15:25; author: utkarsh; state: Exp; lines: +20 -8
C
Created the function Delete().
—————————-
revision 1.2
date: 2014/07/19 07:20:06; author: utkarsh; state: Exp; lines: +17 -1
Created the update function.
—————————-
revision 1.1
date: 2014/07/19 06:49:54; author: utkarsh; state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Leave a comment

Student Database management system, using structures and pointers

==========================================
MENU
==========================================
1. Add Student records
2. Delete students records
3. Update students records
4. View all student records
5. Calculate an average of a selected student’s scores
6. Show student who gets the max total score
7. Show student who gets the min total score
8. Find student by ID
9. Sort records by total scores
Enter your choice:

====================================================================================================

RCS file: 4.c,v
Working file: 4.c
head: 1.10
branch:
locks: strict
utkarsh: 1.10
access list:
symbolic names:
keyword substitution: kv
total revisions: 10; selected revisions: 10
description:
Assignment question 4.
—————————-
revision 1.10 locked by: utkarsh;
date: 2014/07/17 09:25:20; author: utkarsh; state: Exp; lines: +114 -110
Removed the bug, passed the address of struct pointer. So that after reallocation, there is no logical errors.
—————————-
revision 1.9
date: 2014/07/17 08:26:30; author: utkarsh; state: Exp; lines: +132 -90
Sort function is stating some problem, doing some manipulations to sort it out
—————————-
revision 1.8
date: 2014/07/16 23:01:08; author: utkarsh; state: Exp; lines: +28 -21
Completed upto 8 functions with new prototype of scan(int).
—————————-
revision 1.7
date: 2014/07/16 22:09:26; author: utkarsh; state: Exp; lines: +32 -22
Made a new function scan to flush
stdin.
But it is not working that much fine.
—————————-
revision 1.6
date: 2014/07/16 21:18:12; author: utkarsh; state: Exp; lines: +66 -3
Adding some revisions
—————————-
revision 1.5
date: 2014/07/16 20:02:23; author: utkarsh; state: Exp; lines: +73 -6
Completed upto 5 option.
—————————-
revision 1.4
date: 2014/07/16 10:23:38; author: utkarsh; state: Exp; lines: +15 -35
Modified further more. Improved the format.
—————————-
revision 1.3
date: 2014/07/16 10:11:02; author: utkarsh; state: Exp; lines: +1 -1
There was a mistake, that in realloc function, I entered size of new, which was
wrong.
—————————-
revision 1.2
date: 2014/07/16 10:07:20; author: utkarsh; state: Exp; lines: +15 -1
Some revisions
—————————-
revision 1.1
date: 2014/07/16 09:57:31; author: utkarsh; state: Exp;
Initial revision
=============================================================================================

Posted in Uncategorized | Leave a comment

rlog mdc /compression /

RCS file: my_fnts.c,v
Working file: my_fnts.c
head: 1.39
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 39; selected revisions: 39
description:
funtions moved to this file
—————————-
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

Record maintained using structure

1#include <stdio.h>
2 struct student
3 {
4        char name[50];
5            int roll;
6                float marks;
7 };
8 int main()
9 {
10 {
11         printf(“===========================================\n”);
12         printf(”                menu                       \n”);
13         printf(“===========================================\n”);
14         printf(“1.add student record\n”);
15         printf(“2.delete student record\n”);
16         printf(“3.update student record\n”);
17         printf(“4.view all student record\n”);
18 }
19
20 {
21   struct student s[10];
22    int i;
23   printf(“Enter information of students:\n”);
24  for(i=0;i<10;++i)
25   {
26      s[i].roll=i+1;
27      printf(“\nFor roll number %d\n”,s[i].roll);
28      printf(“Enter name: “);

29      scanf(“%s”,s[i].name);
30      printf(“Enter marks: “);
31      scanf(“%f”,&s[i].marks);
32      printf(“\n”);
33
34       }
35     printf(“Displaying information of students:\n\n”);
36     for(i=0;i<10;++i)
37    printf(“\nInformation for roll number %d:\n”,i+1);
38     printf(“Name: “);
39     puts(s[i].name);
40    printf(“Marks: %.1f”,s[i].marks);
41
42 }  return 0;
43 }

note:- till date output is

enter roll no

enter student name

Posted in Uncategorized | Leave a comment

“Multiple Data Compression”

1
2 RCS file: main.c,v
3 Working file: main.c
4 head: 1.10
5 branch:
6 locks: strict
7 root: 1.10
8 access list:
9 symbolic names:
10 keyword substitution: kv
11 total revisions: 10;    selected revisions: 10
12 description:
13 created master array which contains distinct characters of file which is opened
14 —————————-
15 revision 1.10   locked by: root;
16 date: 2014/07/19 18:57:45;  author: root;  state: Exp;  lines: +1 -1
17 *** empty log message ***
18 —————————-
19 revision 1.9
20 date: 2014/07/19 18:50:38;  author: root;  state: Exp;  lines: +1 -3
21 called compres() function
22 —————————-
23 revision 1.8
24 date: 2014/07/19 17:31:05;  author: root;  state: Exp;  lines: +3 -3
25 called function cod_len()
26 —————————-
27 revision 1.7
28 date: 2014/07/19 17:17:13;  author: root;  state: Exp;  lines: +1 -1
29 *** empty log message ***
30 —————————-
31 revision 1.6
32 date: 2014/07/19 17:10:50;  author: root;  state: Exp;  lines: +1 -1
33 *** empty log message ***
34 —————————-
35 revision 1.5
36 date: 2014/07/19 17:04:41;  author: root;  state: Exp;  lines: +4 -1
37 called my_strlen()
38 —————————-
39 revision 1.4
40 date: 2014/07/19 15:01:32;  author: root;  state: Exp;  lines: +0 -64
41 removed function definations
42 —————————-
43 revision 1.3
44 date: 2014/07/18 16:15:11;  author: root;  state: Exp;  lines: +4 -1
45 *** empty log message ***
46 —————————-
47 revision 1.2
48 date: 2014/07/18 16:09:59;  author: root;  state: Exp;  lines: +1 -1
49 *** empty log message ***
50 —————————-
51 revision 1.1
52 date: 2014/07/18 15:55:50;  author: root;  state: Exp;
53 Initial revision
54 =============================================================================
55
56 RCS file: func.c,v
57 Working file: func.c
58 head: 1.14
59 branch:
60 locks: strict
61 root: 1.14
62 access list:
63 symbolic names:
64 keyword substitution: kv
65 total revisions: 14;    selected revisions: 14
66 description:
67 added functions which are in main fill till last revision
68 —————————-
69 revision 1.14   locked by: root;
70 date: 2014/07/19 19:17:50;  author: root;  state: Exp;  lines: +1 -1
71 *** empty log message ***
72 —————————-
73 revision 1.13
74 date: 2014/07/19 19:16:22;  author: root;  state: Exp;  lines: +1 -1
75 *** empty log message ***
76 —————————-
77 revision 1.12
78 date: 2014/07/19 19:13:09;  author: root;  state: Exp;  lines: +1 -1
79 *** empty log message ***
80 —————————-
81 revision 1.11
82 date: 2014/07/19 19:03:18;  author: root;  state: Exp;  lines: +1 -1
83 *** empty log message ***
84 —————————-
85 revision 1.10
86 date: 2014/07/19 19:01:38;  author: root;  state: Exp;  lines: +1 -1
87 *** empty log message ***
88 —————————-
89 revision 1.9
90 date: 2014/07/19 19:00:27;  author: root;  state: Exp;  lines: +1 -1
91 *** empty log message ***
92 —————————-
93 revision 1.8
94 date: 2014/07/19 18:57:44;  author: root;  state: Exp;  lines: +2 -2
95 *** empty log message ***
96 —————————-
97 revision 1.7
98 date: 2014/07/19 18:49:55;  author: root;  state: Exp;  lines: +46 -2
99 partially defined compres() & find_loc() functions
100 —————————-
101 revision 1.6
102 date: 2014/07/19 17:32:48;  author: root;  state: Exp;  lines: +2 -1
103 *** empty log message ***
104 —————————-
105 revision 1.5
106 date: 2014/07/19 17:30:45;  author: root;  state: Exp;  lines: +22 -2
107 defined function code_len()
108 —————————-
109 revision 1.4
110 date: 2014/07/19 17:05:52;  author: root;  state: Exp;  lines: +1 -1
111 declared variable i
112 —————————-
113 revision 1.3
114 date: 2014/07/19 17:04:14;  author: root;  state: Exp;  lines: +19 -0
115 added defination of function my_strlen()
116 —————————-
117 revision 1.2
118 date: 2014/07/19 15:11:14;  author: root;  state: Exp;  lines: +1 -0
119 added header file
120 —————————-
121 revision 1.1
122 date: 2014/07/19 15:00:44;  author: root;  state: Exp;
123 Initial revision
124 ============================================================================    =
125
126 RCS file: header.h,v
127 Working file: header.h
128 head: 1.12
129 branch:
130 locks: strict
131     root: 1.12
132 access list:
133 symbolic names:
134 keyword substitution: kv
135 total revisions: 12;    selected revisions: 12
136 description:
137 included nessary header files
138 —————————-
139 revision 1.12   locked by: root;
140 date: 2014/07/19 18:57:41;  author: root;  state: Exp;  lines: +1 -1
141 *** empty log message ***
142 —————————-
143 revision 1.11
144 date: 2014/07/19 18:54:10;  author: root;  state: Exp;  lines: +1 -0
145 *** empty log message ***
146 —————————-
147 revision 1.10
148 date: 2014/07/19 18:49:15;  author: root;  state: Exp;  lines: +1 -0
149 declared compres function
150 —————————-
151 revision 1.9
152 date: 2014/07/19 17:30:20;  author: root;  state: Exp;  lines: +1 -0
153 added declaration for cod_len()
154 —————————-
155 revision 1.8
156 date: 2014/07/19 17:10:30;  author: root;  state: Exp;  lines: +1 -0
157 added math.h library
158 —————————-
159 revision 1.7
160 date: 2014/07/19 17:03:38;  author: root;  state: Exp;  lines: +1 -0
161 declared function my_strlen
162 —————————-
163 revision 1.6
164 date: 2014/07/19 15:34:51;  author: root;  state: Exp;  lines: +1 -1
165 *** empty log message ***
166 —————————-
167 revision 1.5
168 date: 2014/07/19 15:14:44;  author: root;  state: Exp;  lines: +1 -1
169 *** empty log message ***
170 —————————-
171 revision 1.4
172 date: 2014/07/19 15:04:25;  author: root;  state: Exp;  lines: +1 -1
173 *** empty log message ***
174 —————————-
175 revision 1.3
176 date: 2014/07/19 15:00:21;  author: root;  state: Exp;  lines: +3 -0
177 added declaration of functions
178 —————————-
179 revision 1.2
180 date: 2014/07/18 15:58:46;  author: root;  state: Exp;  lines: +0 -4
181 removed defination of haeder
182 #ifndef_HEADER_H
183 —————————-
184 revision 1.1
185 date: 2014/07/18 15:55:25;  author: root;  state: Exp;
186 Initial revision
187 ============================================================================    =

Posted in Data Structures with C | Leave a comment

I have successfully compressed file.

RCS file: file.c,v
Working file: file.c
head: 1.9
branch:
locks: strict
amardeep: 1.9
access list:
symbolic names:
keyword substitution: kv
total revisions: 9; selected revisions: 9
description:
starting
—————————-
revision 1.9 locked by: amardeep;
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.34
branch:
locks: strict
amardeep: 1.34
access list:
symbolic names:
keyword substitution: kv
total revisions: 34; selected revisions: 34
description:
open_function
—————————-
revision 1.34 locked by: amardeep;
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
=============================================================================

Posted in Uncategorized | Leave a comment

How to find chipset mounted on your motherboard?????

You can find the chipset mounted on your motherboard .

using coomand ==lspci on the terminal will give ou list of all chipset for audio card , usb ,serial, parallel ,vga …….etc

Posted in Character Driver, Parallel Port Driver, Serial Port Driver | Leave a comment

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
all headers of assignment 4th.
—————————-
revision 1.1 locked by: root;
date: 2014/07/18 12:21:11; author: root; state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Leave a comment

RCS file: 7th_q_4.c,v
Working file: 7th_q_4.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
create absolute diffrence .
—————————-
revision 1.1 locked by: root;
date: 2014/07/18 12:21:11; author: root; state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Leave a comment