Returns file path including the trailing path separator symbol.
| 296 | |
| 297 | // Returns file path including the trailing path separator symbol. |
| 298 | void GetFilePath(const char *FullName,char *Path,int MaxLength) |
| 299 | { |
| 300 | size_t PathLength=Min(MaxLength-1,PointToName(FullName)-FullName); |
| 301 | strncpy(Path,FullName,PathLength); |
| 302 | Path[PathLength]=0; |
| 303 | } |
| 304 | |
| 305 | |
| 306 | // Returns file path including the trailing path separator symbol. |
no test coverage detected