FSF.QuoteSpaceOnly

Far Manager

QuoteSpaceOnly

The FSF.QuoteSpaceOnly function encloses an input string in double quotes if it contains at least one space inside.
char* WINAPI QuoteSpaceOnly(
  char *Str
);

Parameters

Str
String that you want to quote. The result will be placed in the same string.

Return value

This function returns a pointer to the resulting string.

Remarks

  1. Note that Str must be large enough to hold the resulting string.
  2. This function does nothing if the string is already enclosed in quotes.