Okay look first thanks for this place :)
I would like to create a piece of shared memory to store 30 structures of the same type, but I am getting errors on ...
skumar434@gmail.com Hi everybody, I am faceing problem while assigning the memory dynamically to a array of structures . Suppose I have a structure typedef struct hom_id{ int32_t nod_de; int32_t hom_id; int32_t hom_type; int32_t hom_pid; } hom_data; I created array of structures in my program so that i can store the data in array hom_data arr[]; I want to know how to ...
Code: int shmid = shmget (SHMKEY, 128, 0777|IPC_CREAT); char *addr = (char *)shmat (shmid, 0, 0); ptr = (int *) addr; Hey there, Thanks for taking the time By processes i mean they are methods within the child, 4 methods, one each in each child, meaning 4 childs. And yes, in the same program, if you mean in the same .c ...
Hi all ! I have a similar problem. But I want to have an array of that kind of struct, something like : RC* pp[NUMBEROF]; or RC** pp; if it works... When I do this : pp[x] = new RC(); pp[x]->items=(char*)malloc(sizeof(num)); I don't have any crash, but the datas I put and retrieve inside later are invalid. Any ideas, suggestions ? ...