vsprintf_s1 [C/C++] 가변 인자 사용하기 int vsprintf_s( char *buffer, size_t sizeInBytes, const char *format, va_list argptr ); // crt_vsprintf_s.c // This program uses vsprintf_s to write to a buffer. // The size of the buffer is determined by _vscprintf. #include #include void test( char * format, ... ) { va_list args; int len; char * buffer; va_start( args, format ); len = _vscprintf( format, args ) // _vscprintf doesn't count + 1;.. 2008. 11. 4. 이전 1 다음