본문 바로가기
Programming/Tips(C++,C#)

vsprintf -> vsprintf_s

by 곰네Zip 2010. 3. 15.

int vsprintf( char *buffer, const char *format, va_list argptr );
int vswprintf( wchar_t *buffer, const wchar_t *format, va_list argptr );
Parameters
buffer
Storage location for output.
format
Format specification.
argptr
Pointer to list of arguments.


return value = 몇개의 글자가 write되었나?


int vsprintf_s(
   char *buffer,
   size_t numberOfElements,
   const char *format,
   va_list argptr
);

Parameters
buffer
Storage location for output.

numberOfElements
Size of buffer.

format
Format specification.

argptr
Pointer to list of arguments.


return value = 몇개의 글자가 write되었나?

반응형

댓글