Ok, i have this function and for some reason the return value is ...........
Obviously this is a simplified version of the function... but it doesn't work anyway!Code:sem_t *semn_open(int id){ return (sem_t*)sem_open("/999", O_CREAT); }
I'm calling this with:
Can anyone help me?Code:sem_t *temp; // causes segmentation fault temp = semn_open(999); // all OK // temp = sem_open("/999", O_CREAT);
Thanks in advance