%shmat() function

The %shmat() function attaches a shared memory segment associated with the shared memory identifier shmid and returns the address of the segment.

For Windows: Not Supported

Syntax

pointer = (char*)%shmat(shmid, (char*)shmaddr, shmflg)

Description

Valid values for shmflg are defined in shm.h and ipc.h. See the UNIX system documentation.

Warning: It is strongly advised to use only the form where shmaddr is 0, to let the system select the address.