ftok function
Create token from filename.
Declaration
function ftok(Path: PAnsiChar; ID: cint): TKeyDescription
ftok returns a key that can be used in a
semget
shmget
or
msgget call to access a new or existing IPC resource.
Path is the name of a file in the file system,
ID is a
character of your choice. The ftok call does the same as it's C counterpart,
so a pascal program and a C program will access the same resource if
they use the same
Path and
ID
For an example, see msgctl, semctl or shmctl.
Errors
ftok returns -1 if the file in
Path doesn't exist.See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
