Returns file path including the trailing path separator symbol.
| 192 | |
| 193 | // Returns file path including the trailing path separator symbol. |
| 194 | void GetFilePath(const wchar *FullName,wchar *Path,size_t MaxLength) |
| 195 | { |
| 196 | if (MaxLength==0) |
| 197 | return; |
| 198 | size_t PathLength=Min(MaxLength-1,size_t(PointToName(FullName)-FullName)); |
| 199 | wcsncpy(Path,FullName,PathLength); |
| 200 | Path[PathLength]=0; |
| 201 | } |
| 202 | |
| 203 | |
| 204 | // Removes name and returns file path without the trailing |
no test coverage detected