shared memory question/ array of structures
Conor P. Cahill
cpcahil at virtech.uucp
Sat Oct 6 04:28:04 AEST 1990
In article <628 at ge1ccj.Quotron.com> jeff at ge1ccj.Quotron.com (jeff marder) writes:
>
>Suppose I want to define a shared memory segment that is an array of
>structures. Do I need to declare the array of structures in my program,
>or only a pointer to an array of structures to make a shared memory
>attach?
You could use an array of pointers to shared memory locations or
a pointer to an array of structures.
> How do you declare a pointer to an array of structures?
cdecl> declare x as pointer to array 5 of int
int (*x)[5]
cdecl> declare x as pointer to array 5 of struct tmpstruct
struct tmpstruct (*x) [5]
--
Conor P. Cahill (703)430-9247 Virtual Technologies, Inc.,
uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160
Sterling, VA 22170
More information about the Comp.unix.questions
mailing list