EmbLogic's Blog

Author Archives: Paras Kumar

Character Device Driver : RCS [init, open, write, read, seek ,clean]

RCS FOR INITILIZATION RCS file: ./initialization.c,v Working file: ./initialization.c head: 1.8 branch: locks: strict root: 1.8 access list: symbolic names: keyword substitution: kv total revisions: 8;    selected revisions: 8 description: initialization function registering char driver. —————————- revision 1.8    locked by: … Continue reading

Posted in Character Driver | Leave a comment

RCS for FTP based Client Server project using sockets and threads

This  code works for multiple clients trying to download any file at same time using AF_INET. For every  client server creates a new thread and that thread responds to the client. rcs for server. RCS file: ./server.c,v Working file: ./server.c … Continue reading

Posted in Project 04: FTP based Client Server using Threads and Sockets | Leave a comment

Circular queue using Link list

MAIN.. #include”header.h” int main() { int choice,n=0; struct node *start; start=NULL; printf(“\n ENTER THE SIZE OF CIRCULAR QUEUE\n”); scanf(“%d”,&n); while(1) { choice=getchoice(); operation(choice,&start,n); } return 0; } FUNCTION DEFINITIONS.. #include”header.h” struct node *front,*rear=NULL; struct node *temp =NULL; int count=-1,flag=0,num=0; int … Continue reading

Posted in Uncategorized | Leave a comment

stack operations using link list (pass by reference)

main #include”header.h” int main() { int choice; struct node *start; start = (struct node *)malloc(sizeof(struct node)); start->next = NULL; start->prev = NULL; while(1) {    choice = get_choice(); operation(choice,&start); } return 0; }   FUNCTIONS DEFINITIONS #include”header.h” struct node *top=NULL; int … Continue reading

Posted in Data Structures with C | Leave a comment

C assignment link list operations Q1(pass by value method)

HEADER.h #include<stdio.h> #include<stdlib.h> struct node { int info; struct node * next; }; int get_choice(); struct node * operation(int, struct node *); struct node * create_node(struct node *); struct node * insert_node(struct node*); struct node * insert_beg(struct node*); struct node … Continue reading

Posted in Data Structures with C | Leave a comment