VirtualBox

儲存庫 vbox 的更動 17008


忽略:
時間撮記:
2009-2-23 下午12:23:01 (16 年 以前)
作者:
vboxsync
訊息:

IPRT: Expose (and fix) RTStrmOpenF and RTStrmOpenFV.

位置:
trunk
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • trunk/include/iprt/stream.h

    r8245 r17008  
    6767
    6868/**
     69 * Opens a file stream.
     70 *
     71 * @returns iprt status code.
     72 * @param   pszMode         The open mode. See fopen() standard.
     73 *                          Format: <a|r|w>[+][b|t]
     74 * @param   ppStream        Where to store the opened stream.
     75 * @param   pszFilenameFmt  Filename path format string.
     76 * @param   args            Arguments to the format string.
     77 */
     78RTR3DECL(int) RTStrmOpenFV(const char *pszMode, PRTSTREAM *ppStream, const char *pszFilenameFmt, va_list args);
     79
     80/**
     81 * Opens a file stream.
     82 *
     83 * @returns iprt status code.
     84 * @param   pszMode         The open mode. See fopen() standard.
     85 *                          Format: <a|r|w>[+][b|t]
     86 * @param   ppStream        Where to store the opened stream.
     87 * @param   pszFilenameFmt  Filename path format string.
     88 * @param   ...             Arguments to the format string.
     89 */
     90RTR3DECL(int) RTStrmOpenF(const char *pszMode, PRTSTREAM *ppStream, const char *pszFilenameFmt, ...);
     91
     92/**
    6993 * Closes the specified stream.
    7094 *
  • trunk/src/VBox/Runtime/r3/stream.cpp

    r14060 r17008  
    200200 * @param   args            Arguments to the format string.
    201201 */
    202 RTR3DECL(int) RTStrmOpenfV(const char *pszMode, PRTSTREAM *ppStream, const char *pszFilenameFmt, va_list args)
     202RTR3DECL(int) RTStrmOpenFV(const char *pszMode, PRTSTREAM *ppStream, const char *pszFilenameFmt, va_list args)
    203203{
    204204    int     rc;
    205205    char    szFilename[RTPATH_MAX];
    206     size_t  cch = RTStrPrintf(szFilename, sizeof(szFilename), pszFilenameFmt, args);
     206    size_t  cch = RTStrPrintfV(szFilename, sizeof(szFilename), pszFilenameFmt, args);
    207207    if (cch < sizeof(szFilename))
    208208        rc = RTStrmOpen(szFilename, pszMode, ppStream);
     
    226226 * @param   ...             Arguments to the format string.
    227227 */
    228 RTR3DECL(int) RTStrmOpenf(const char *pszMode, PRTSTREAM *ppStream, const char *pszFilenameFmt, ...)
     228RTR3DECL(int) RTStrmOpenF(const char *pszMode, PRTSTREAM *ppStream, const char *pszFilenameFmt, ...)
    229229{
    230230    va_list args;
    231231    va_start(args, pszFilenameFmt);
    232     int rc = RTStrmOpenfV(pszMode, ppStream, pszFilenameFmt, args);
     232    int rc = RTStrmOpenFV(pszMode, ppStream, pszFilenameFmt, args);
    233233    va_end(args);
    234234    return rc;
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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