Join With Me...

3:09 AM

Shared memory in Unix C program

#include
main()

{
     int x,y;
     struct mot
     {
       int a,b;
       char name[20];
     }*ms;
     x=shmget((key_t)2006,4096,0666|IPC_CREAT);
     if(x>0)
        printf("SHM created");
     else
printf("Error");
     shmat(struct mot *,)


0 comments:

Post a Comment