Question: what is ftok in c?
Answer: DESCRIPTION. The ftok() function returns a key based on path and id. The function returns the same key for all paths that point to the same file when called with the same id value. If ftok() is called with different id values or path points to different files on the same file system, it returns different keys.