VirtualBox

Changeset 11836 in vbox for trunk/include/iprt/path.h


Ignore:
Timestamp:
Aug 29, 2008 4:52:20 PM (16 years ago)
Author:
vboxsync
Message:

IPRT: Implemented RTR3Init*WithProgramPath. Added RTPathParse. Cleaned up the RTPathProgram and RTProcGetExecutableName implementations.

File:
1 edited

Legend:

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

    r10911 r11836  
    231231 */
    232232RTDECL(void) RTPathStripTrailingSlash(char *pszPath);
     233
     234/**
     235 * Parses a path.
     236 *
     237 * It figures the length of the directory component, the offset of
     238 * the file name and the location of the suffix dot.
     239 *
     240 * @returns The path length.
     241 *
     242 * @param   pszPath     Path to find filename in.
     243 * @param   pcbDir      Where to put the length of the directory component.
     244 *                      If no directory, this will be 0. Optional.
     245 * @param   poffName    Where to store the filename offset.
     246 *                      If empty string or if it's ending with a slash this
     247 *                      will be set to -1. Optional.
     248 * @param   poffSuff    Where to store the suffix offset (the last dot).
     249 *                      If empty string or if it's ending with a slash this
     250 *                      will be set to -1. Optional.
     251 * @param   pfFlags     Where to set flags returning more information about
     252 *                      the path. For the future. Optional.
     253 */
     254RTDECL(size_t) RTPathParse(const char *pszPath, size_t *pcchDir, ssize_t *poffName, ssize_t *poffSuff);
    233255
    234256/**
Note: See TracChangeset for help on using the changeset viewer.

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