가변 인수 전달 #include #include 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 2008.07.22