FSF.GetNumberOfLinks

Far Manager

GetNumberOfLinks

The FSF.GetNumberOfLinks function returns the number of hard links to the specified file.
int WINAPI GetNumberOfLinks(
  const char *Name
);

Parameters

Name
Name of the file for which you want to obtain the number of links.

Return value

If the function succeeds, the return value is the number of links to the specified file, otherwise the return value is 0. On file systems other than NTFS the number of links to a file is always 1.
See also: