in reply to Re^2: use ftok to access shared memory
in thread use ftok to access shared memory

It is as you guess.

enzo@P0101222 shared_memory$ ./ftok /prd/b_BCM/dat/IPC/shared_memory1 1

101a3ce

I read the value 101a3ce from the stdout

But I'm looking for a better solution