儲存庫 vbox 的更動 17008
- 時間撮記:
- 2009-2-23 下午12:23:01 (16 年 以前)
- 位置:
- trunk
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/include/iprt/stream.h
r8245 r17008 67 67 68 68 /** 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 */ 78 RTR3DECL(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 */ 90 RTR3DECL(int) RTStrmOpenF(const char *pszMode, PRTSTREAM *ppStream, const char *pszFilenameFmt, ...); 91 92 /** 69 93 * Closes the specified stream. 70 94 * -
trunk/src/VBox/Runtime/r3/stream.cpp
r14060 r17008 200 200 * @param args Arguments to the format string. 201 201 */ 202 RTR3DECL(int) RTStrmOpen fV(const char *pszMode, PRTSTREAM *ppStream, const char *pszFilenameFmt, va_list args)202 RTR3DECL(int) RTStrmOpenFV(const char *pszMode, PRTSTREAM *ppStream, const char *pszFilenameFmt, va_list args) 203 203 { 204 204 int rc; 205 205 char szFilename[RTPATH_MAX]; 206 size_t cch = RTStrPrintf (szFilename, sizeof(szFilename), pszFilenameFmt, args);206 size_t cch = RTStrPrintfV(szFilename, sizeof(szFilename), pszFilenameFmt, args); 207 207 if (cch < sizeof(szFilename)) 208 208 rc = RTStrmOpen(szFilename, pszMode, ppStream); … … 226 226 * @param ... Arguments to the format string. 227 227 */ 228 RTR3DECL(int) RTStrmOpen f(const char *pszMode, PRTSTREAM *ppStream, const char *pszFilenameFmt, ...)228 RTR3DECL(int) RTStrmOpenF(const char *pszMode, PRTSTREAM *ppStream, const char *pszFilenameFmt, ...) 229 229 { 230 230 va_list args; 231 231 va_start(args, pszFilenameFmt); 232 int rc = RTStrmOpen fV(pszMode, ppStream, pszFilenameFmt, args);232 int rc = RTStrmOpenFV(pszMode, ppStream, pszFilenameFmt, args); 233 233 va_end(args); 234 234 return rc;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器