반응형
#include < stdarg.h >
#include < wtypes.h >
void VarArg(LPCSTR formatstring, ...)
{
int nSize = 0;
char buff[255];
va_list args;
va_start(args, formatstring);
nSize = _vsnprintf( buff, sizeof(buff), formatstring, args);
}
void main()
{
VarArg("%s World", "Hello");
}
반응형
'Game Dev > Article' 카테고리의 다른 글
| Internal Reference Count (0) | 2008.08.06 |
|---|---|
| rand 함수의 올바른 분포 (0) | 2008.07.29 |
| Shell Command List (0) | 2008.07.22 |
| Disable StickyKeys and Shortcuts (0) | 2008.07.22 |