VirtualBox

Changeset 19927 in vbox for trunk


Ignore:
Timestamp:
May 22, 2009 11:43:57 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
47629
Message:

iprt/path.h: Updated RTPathAppend docs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/path.h

    r19926 r19927  
    346346 * Appends one partial path to another.
    347347 *
    348  * The main purpose of this function is to deal correctly with leading and
    349  * trailing slashes.
     348 * The main purpose of this function is to deal correctly with the slashes when
     349 * concatenating the two partial paths.
    350350 *
    351351 * @returns IPRT status code.
     
    361361 *
    362362 * @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".
    367372 */
    368373RTDECL(int) RTPathAppend(char *pszPath, size_t cchPathDst, const char *pszAppend);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette