VirtualBox

Changeset 36577 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Apr 6, 2011 1:35:17 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
71017
Message:

iprt: add RTDirCreateUniqueNumbered

File:
1 edited

Legend:

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

    r33820 r36577  
    9090 */
    9191RTDECL(int) RTDirCreateTemp(char *pszTemplate);
     92
     93/**
     94 * Creates a new directory with a unique name by appending a number.
     95 *
     96 * First it is tried to create the directory without any numbers appended.
     97 * When this fails a number string is appended (starting with 1) separated by
     98 * the optional separator. The numbers are zero padded.
     99 *
     100 * On success @a pszPath contains the path created.
     101 *
     102 * @returns iprt status code.
     103 * @param   pszPath     Path to the directory to create.
     104 * @param   cbSize      The size of pszPath. Needs enough space for holding the
     105 *                      digits and the optional separator.
     106 * @param   fMode       The mode of the new directory.
     107 * @param   cchDigits   How many digits should the number maximal have.
     108 * @param   chSep       The separator used between the path and the number. Can
     109 *                      be zero. (optional)
     110 */
     111RTDECL(int) RTDirCreateUniqueNumbered(char *pszPath, size_t cbSize, RTFMODE fMode, size_t cchDigits, char chSep);
    92112
    93113/**
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