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
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
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
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
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