- Timestamp:
- May 22, 2009 11:43:57 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 47629
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/path.h
r19926 r19927 346 346 * Appends one partial path to another. 347 347 * 348 * The main purpose of this function is to deal correctly with leading and349 * trailing slashes.348 * The main purpose of this function is to deal correctly with the slashes when 349 * concatenating the two partial paths. 350 350 * 351 351 * @returns IPRT status code. … … 361 361 * 362 362 * @remarks On OS/2, Window and similar systems, concatenating a drive letter 363 * specifier with a root prefixed path will result in an absolute path. 364 * Meaning, RTPathAppend(strcpy(szBuf, "C:"), sizeof(szBuf), "/bar") 365 * will result in "C:/bar". (This follows directly from the behavior 366 * when pszPath is empty.) 363 * specifier with a slash prefixed path will result in an absolute 364 * path. Meaning, RTPathAppend(strcpy(szBuf, "C:"), sizeof(szBuf), 365 * "/bar") will result in "C:/bar". (This follows directly from the 366 * behavior when pszPath is empty.) 367 * 368 * On the other hand, when joining a drive letter specifier with a 369 * partial path that does not start with a slash, the result is not an 370 * absolute path. Meaning, RTPathAppend(strcpy(szBuf, "C:"), 371 * sizeof(szBuf), "bar") will result in "C:bar". 367 372 */ 368 373 RTDECL(int) RTPathAppend(char *pszPath, size_t cchPathDst, const char *pszAppend);
Note:
See TracChangeset
for help on using the changeset viewer.