EmbLogic's Blog

Author Archives: kpuja.dimple06

SHARED MEMORY

Shared memory allows one or more processes to communicate via memory that appears in all of their virtual address spaces. The pages of the virtual memory is referenced by page table entries in each of the sharing processes’ page tables. … Continue reading

Posted in Uncategorized | Leave a comment

program for simple queue

@this a program for simple queue to push pop and display the elements of the queue @ 1.1 log @Initial revision @ text @#include”header.h” int main() { void *queue; int f,r; f=r=-1; int ch; do { printf(“1:push\n”); printf(“2:pop\n”); printf(“3:display\n”); printf(“4:exit\n”); … Continue reading

Posted in Uncategorized | Leave a comment

program to reverse link list using three pointers

#include #include #include struct node { int a; struct node *next; }; struct node * create_ll(); void display(struct node *); void rev(struct node *); int main() { struct node *start ,*temp,*temp1; int i,n; start=create_ll(); temp=start; printf(“enter node\n”); scanf(“%d”,&n); for(i = … Continue reading

Posted in Uncategorized | Leave a comment

implementation of stack using pointers

head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2014.03.29.11.10.17; author emblogic; state Exp; branches; next ; desc @this is a program of stack implementation using poimters @ 1.1 log @Initial revision @ text @#include”header.h” int main() … Continue reading

Posted in Uncategorized | Leave a comment

program of linked list

head 1.1; access; symbols; locks Emblogic:1.1; strict; comment @ * @; 1.1 date 2014.03.25.09.08.55; author Emblogic; state Exp; branches; next ; desc @this is a program of linked list to insert the node at beginning,position and end to delete the … Continue reading

Posted in Uncategorized | Leave a comment

structure padding

Most processors require specific memory alignment on variables certain types. Normally the minimum alignment is the size of the basic type in question, fo instance this is common   char variables can be byte aligned and appear at any byte … Continue reading

Posted in Uncategorized | Leave a comment

this is a program tyo copy the contents of one file into another

RCS file: 8p7.c,v Working file: 8p7.c head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: this is a program to copy the contents of one file to another —————————- revision … Continue reading

Posted in Uncategorized | Leave a comment

this is a program to convert the contents of a file into uppercaseand then write it to another file

RCS file: 8p4.c,v Working file: 8p4.c head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: this is a program to convert the contents of a file into upper case and … Continue reading

Posted in Uncategorized | Leave a comment

program to check if both files are equal or not

RCS file: 8p3.c,v Working file: 8p3.c head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1;    selected revisions: 1 description: this is a program to check if two files are same or not by comparing … Continue reading

Posted in Uncategorized | Leave a comment

this is a program to read the last n char from the file using fseek()

—————————- revision 1.1 date: 2014/03/19 22:12:05;  author: emblogic;  state: Exp; Initial revision =============================================================================

Posted in Uncategorized | Leave a comment

this is a program to copy the contents of one file to another using fputc()

—————————- revision 1.1 date: 2014/03/19 21:16:30; author: emblogic; state: Exp; Initial revision

Posted in Uncategorized | Leave a comment

this is a program to copy the contents of one file to another using fputc() and fgetc()

—————————- revision 1.1 date: 2014/03/19 21:16:30; author: emblogic; state: Exp; Initial revision

Posted in Uncategorized | Leave a comment

this is a program to copy contents of one file to another using fputc() and fgetc()

—————————- revision 1.1 date: 2014/03/19 21:16:30; author: emblogic; state: Exp; Initial revision

Posted in Uncategorized | Leave a comment

program to count the no. of positive no.s in the array and exit if any element is zero

>> this is the program using pointers >> in which we count the positive no.s in array and exit when zero is found >> there must b atleast one zero in the array >> . initial revision: 1.1 done [root@localhost … Continue reading

Posted in Uncategorized | Leave a comment

program to print the first byte of each element in integer array using pointers

>> this is a program to print the first byte of each element from an integer array >> using pointers >> . initial revision: 1.1 done [root@localhost puja]# rlog vim 7p7.c,v rlog: RCS/vim,v: No such file or directory RCS file: … Continue reading

Posted in Uncategorized | Leave a comment