The function returns -1.
However, what is the meaning of (void*) in the following code:
can it work without it ?
test = shmat(shm_id, NULL, 0);
if (test == (void *)-1) {
/* handle shmat failure */
}
The function returns -1.
However, what is the meaning of (void*) in the following code:
can it work without it ?
test = shmat(shm_id, NULL, 0);
if (test == (void *)-1) {
/* handle shmat failure */
}