FSF.TruncPathStr

Far Manager

TruncPathStr

The FSF.TruncPathStr function truncates a given path to specified length and, if needed, inserts into it an ellipsis to indicate the place of truncation.
char* WINAPI TruncPathStr(
  char *Str,
  int MaxLength
);

Parameters

Str
Path that you want to truncate. The result will be placed into the same buffer.
MaxLength
Specifies the length to truncate the path to.

Return value

On return Str contains a pointer to the truncated path.
See also: