| 215 | //----------------------------------------------------------------------------- |
| 216 | |
| 217 | inline void catPath(char *dst, const char *src, U32 len) |
| 218 | { |
| 219 | if(*dst != '/') |
| 220 | { |
| 221 | ++dst; --len; |
| 222 | *dst = '/'; |
| 223 | } |
| 224 | |
| 225 | ++dst; --len; |
| 226 | |
| 227 | dStrncpy(dst, src, len); |
| 228 | dst[len - 1] = 0; |
| 229 | } |
| 230 | |
| 231 | // converts the posix root path "/" to "c:/" for win32 |
| 232 | // FIXME: this is not ideal. the c: drive is not guaranteed to exist. |
no test coverage detected