Go to the source code of this file.
|
int | FormatString (char **acBuf, const char *szFmt, va_list tArg) |
|
◆ BUFFER_LEN
◆ DBL_DIG
◆ FL_ALTERNATE
#define FL_ALTERNATE 0x0008U |
◆ FL_LEFTADJUST
#define FL_LEFTADJUST 0x0001U |
◆ FL_LONG
◆ FL_LONGDOUBLE
#define FL_LONGDOUBLE 0x0080U |
◆ FL_POINTER
#define FL_POINTER 0x0100U |
◆ FL_SHORT
◆ FL_SIGN
◆ FL_SPACE
◆ FL_ZEROPAD
#define FL_ZEROPAD 0x0004U |
◆ iIsBigEndian
#define iIsBigEndian |
( |
| ) |
(*(char*)&iEndianChk == 0) |
◆ iIsNanOrInf
#define iIsNanOrInf |
( |
|
puVal | ) |
|
◆ MAX_WIDTH
#define MAX_WIDTH ((SHRT_MAX - 9) / 10) |
◆ PAD
#define PAD |
( |
|
szPadStr, |
|
|
|
iPadLen |
|
) |
| |
Value: { \
if (iPadLen > 0) \
{ \
iTmp = iPadLen; \
while (iTmp >= 32) \
{ \
if (iOutFoo(pvOutData, (const char*)szPadStr, 32) < 0) \
return -1; \
iOutCount += 32; \
iTmp -= 32; \
} \
if (iTmp) \
{ \
if (iOutFoo(pvOutData, (const char*)szPadStr, (size_t)iTmp) < 0) \
return -1; \
iOutCount += iTmp; \
} \
} \
}
◆ PADSPACES
#define PADSPACES |
( |
|
iPadWidth | ) |
PAD(szSpaces, iPadWidth) |
◆ PADZEROS
#define PADZEROS |
( |
|
iPadWidth | ) |
PAD(szZeros, iPadWidth) |
◆ PUTSTR
#define PUTSTR |
( |
|
szPutStr, |
|
|
|
iPutLen |
|
) |
| |
Value: { \
if (iPutLen > 0) \
if (iOutFoo(pvOutData, (const char*)szPutStr, (size_t)iPutLen) < 0) \
return -1; \
iOutCount += iPutLen; \
}
◆ FormatString()
int FormatString |
( |
char ** |
acBuf, |
|
|
const char * |
szFmt, |
|
|
va_list |
tArg |
|
) |
| |