What is ftok?

one or more processes (allocated at different address spaces) can share an area of memory. This memory is referred to as the shared memory segment. the ftok() function call returns a key (which is most likely an integer) that signifies the shared memory segment. hope this helps (i tried to simplify it a lot)