VirtualBox

Changeset 44615 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Feb 10, 2013 6:10:50 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83701
Message:

Runtime/path: Add RTPathCreateRelative to create a relative path between two absolute ones

File:
1 edited

Legend:

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

    r44528 r44615  
    594594
    595595
     596/**
     597 * Create a relative path between the two given paths.
     598 *
     599 * @returns IPRT status code.
     600 * @retval  VINF_SUCCESS on success.
     601 * @retval  VERR_BUFFER_OVERFLOW if the result is too big to fit within
     602 *          cbPathDst bytes.
     603 * @retval  VERR_NOT_SUPPORTED if both paths start with different volume specifiers.
     604 * @param   pszPathDst      Where to store the resulting path.
     605 * @param   cbPathDst       The size of the buffer pszPathDst points to,
     606 *                          terminator included.
     607 * @param   pszPathFrom     The path to start from creating the relative path.
     608 * @param   pszPathTo       The path to reach with the created relative path.
     609 */
     610RTDECL(int) RTPathCreateRelative(char *pszPathDst, size_t cbPathDst,
     611                                 const char *pszPathFrom,
     612                                 const char *pszPathTo);
     613
    596614#ifdef IN_RING3
    597615
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