r*****o 发帖数: 28 | 1 I have a shared data structure like this:
struct s {
int ...
...
char *text;
}
While creating the shmid, is it possible to dynamically
allocate the shared memory according to the size of the char*?
Or I should change the structure to:
struct s{
int ...
...
char text[MAXLENTH];
}
and shmid = shmget(..., sizeof(s), ...) ??? |
|