AddEndSlash
The FSF.AddEndSlash function is used to add a trailing backslash or slash to a path. The
symbol that will be added depends on those used in the path.
int WINAPI AddEndSlash( char *Path );
Parameters
Path
A string containing the path to which you want to add a trailing slash or backslash.
Note that Path must have enough space for an additional character.
Return value
On success return value is TRUE, otherwise return value is FALSE.
Remarks
- The string must be large enough to contain an additional character ('\' or '/').
- This function works with both types of slashes - normal and backslashes.
- If a string already has a trailing slash it will be converted to the slash of such type which is more common in the Path string.
- No slash will be added at the end of the string if the string already contains a trailing slash.