EmbLogic's Blog

Category Archives: Uncategorized

Output of following program?

int main() { static int i=5; if(–i){ main(); printf(“%d “,i); } } answer is 0000

Posted in Uncategorized | Leave a comment

create linklist and display the data

head 1.1; access; symbols; locks root:1.1; strict; comment @ * @; 1.1 date 2014.03.23.22.24.26; author root; state Exp; branches; next ; desc @create linklist . @ 1.1 log @Initial revision @ text @#include #include #include struct node { int roll; … Continue reading →

Posted in Uncategorized | Leave a comment

create linklist and display the data

head    1.1; access; symbols; locks root:1.1; strict; comment    @ * @; 1.1 date    2014.03.23.22.24.26;    author root;    state Exp; branches; next    ; desc @create linklist . @ 1.1 log @Initial revision @ text @#include<stdio.h> #include<stdlib.h> #include<string.h> struct node { int roll; … Continue reading →

Posted in Uncategorized | Leave a comment

enter any string and compressed it with the help of masterarray

head    1.1; access; symbols; locks; strict; comment    @ * @; 1.1 date    2014.03.23.21.53.35;    author root;    state Exp; branches; next    ; desc @master array with compression @ 1.1 log @Initial revision @ text @#include<stdio.h> #include<string.h> #include<fcntl.h> int main() { int i=0,j,len,maslen=1,fd,ret; … Continue reading →

Posted in Uncategorized | Leave a comment

a program that counts the no. of element that are nonzero and stop when a zero is found

1 head    1.1; 2 access; 3 symbols; 4 locks 5     root:1.1; strict; 6 comment @ * @; 7 8 9 1.1 10 date    2014.03.21.01.03.45;    author root;    state Exp; 11 branches; 12 next    ; 13 14 15 desc 16 @counts the … Continue reading →

Posted in Uncategorized | Leave a comment

enter a string and compress it with the help of masterarray

head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2014.03.23.21.53.35; author root; state Exp; branches; next ; desc @master array with compression @ 1.1 log @Initial revision @ text @#include #include #include int main() { int i=0,j,len,maslen=1,fd,ret; … Continue reading →

Posted in Uncategorized | Leave a comment

a program that counts the no. of element that are nonzero and stop when zero is found

1 head 1.1; 2 access; 3 symbols; 4 locks 5 root:1.1; strict; 6 comment @ * @; 7 8 9 1.1 10 date 2014.03.21.01.03.45; author root; state Exp; 11 branches; 12 next ; 13 14 15 desc 16 @counts the … Continue reading →

Posted in Uncategorized | Leave a comment

message queues

RCS file: msgq_srvr.c,v Working file: msgq_srvr.c head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1;    selected revisions: 1 description: —————————- revision 1.1    locked by: root; date: 2014/03/25 04:43:34;  author: root;  state: Exp; … Continue reading →

Posted in Project 03: Client Server Communication using Linux and IPC, Uncategorized | Tagged | Leave a comment

What is the diffrence between single quoted and dauble quoted declaration of char array

In C/C++, when a character array is initialized with a double quoted string and array size is not specified, compiler automatically allocates one extra space for string terminator ‘?. For example, following program prints 6 as output. #include int main() … Continue reading →

Posted in Uncategorized | Leave a comment

Memory management

Memory management is the most important parts of the operating system.early days of computing, there has been a need for more memory than exists physically in a system.Virtual memory makes the system appear to have more memory than it actually … Continue reading →

Posted in Uncategorized | Leave a comment

ioctl

Create a file that contain all macros, that is used by by user as a command this file called ioctl.h After creating ioctl.h ,you create a file ioctl.c that file work for kernel space, that file contain all command specific … Continue reading →

Posted in Uncategorized | Leave a comment

#include #include #include struct node { int roll; char name[20]; struct node *next; }; void creat_node(struct node * temp) { struct node *start; temp->next=malloc(sizeof(struct node)); temp=temp->next; printf(“\nentrer the roll”); scanf(“%d”,&temp->roll); printf(“enter the name \n”); scanf(“%s”,temp->name); temp->next=NULL; } void display_node(struct node … Continue reading →

Posted in Uncategorized | Leave a comment

character driver

Successfully implemented all synchronization techniques. now implementing ioctl.

Posted in Uncategorized | Leave a comment

Inter Processcommunication (IPC),PIPES

Pipes are used to establish communication between no. of processes. creating a pipe in c: To create a simple pipe with C, we make use of the pipe() system call. It takes a single argument, which is an array of … Continue reading →

Posted in Uncategorized | Leave a comment

character driver

character ioctl completed

Posted in Uncategorized | Leave a comment