Question: what is ftok function in c?
Answer: The ftok() function returns a key based on path and id that is usable in subsequent calls to msgget(), semget(), and shmget(). ... The ftok() function returns the same key value for all paths that name the same file, when called with the same id value.