FSF.TruncStr

Far Manager

TruncStr

The FSF.TruncStr function truncates a given string to the specified length and, if needed, inserts into its beginning an ellipsis instead of the truncated part.
char* WINAPI TruncStr(
  char *Str,
  int MaxLength
);

Parameters

Str
String that you want to truncate. The result will be placed in the same buffer.
MaxLength
Specifies the length to truncate the string to.

Return value

On return Str contains a pointer to truncated string.

Remarks

Example

See also: