Share « memory « C Array Q&A

Home
C Array Q&A
1.bit
2.Byte
3.char
4.class
5.Development
6.Dimensional Array
7.dynamic
8.element
9.find
10.index
11.initialization
12.Integer
13.length
14.loop
15.memory
16.Operation
17.pointer
18.Print
19.size
20.Sort Search
21.string
22.struct
23.variable
C Array Q&A » memory » Share 

1. Is it possible to allocate a 2D array as shared memory with IPC?    stackoverflow.com

I want to allocate shared memory as a 2D array using IPC. I tried the following:

id_shmem = shmget(ipc_key, sizeof(int)*rows*columns, IPC_CREAT|0666);

matrix = (int **)shmat(id_shmem, 0, 0);
The problem is that whenever I try ...

2. Array of structs in shared memory for two processes    stackoverflow.com

I'm trying to create an array of structs to share between a parent and child process using "shmget". I am following a template from my professor, but his did not include ...

3. Problem : Sending Array to Client Process Using Shared Memory    cboard.cprogramming.com

apologize me i've put the wrong code, it should be, main process, Code: #include #include #include #include #include #define SHMSZ 4 #define SHMSZ2 1 main() { int noofvals=0,i,num,shmid,*shm,*s,shmid2,j; char *shm2,*s2; printf("Enter the Number Values you enter\n"); scanf("%d",&noofvals); int *arr=malloc(noofvals*sizeof(int)); for(i=0;i

4. Array of srtuct and shared memory    cboard.cprogramming.com

5. problem with sending array of struct over shared memory    cboard.cprogramming.com

First of all, Hello to the comunity! I hope someone will be able to help or at least give me some hint/guide on what I'm doing wrong here. Here is the code: Code: #include #include #include #include #include #define KEY (5679) typedef struct _command { int x; int y; int xo; int yo; int lock; } ...

6. Shared Memory - Array of RSA    forums.devshed.com

Without taking the time to RTFM and only looking at the error message, my guess is RSA_generate_key() returns a pointer and you are trying to assign it to an integer value. Alternatively one (or more) of the arguments you are providing as NULL actually require a valid integer value. No substitute for RTFM!

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.