'programming/C_C++'에 해당되는 글 279건

  1. 2011.08.29 logPrint

logPrint

programming/C_C++ 2011. 8. 29. 21:07
반응형

int logPrint (char*fmt, ...)
{

    char buff[8192];
    va_list args;

    va_start(args, fmt);
    (void)vsnprintf(buff, sizeof(buff), fmt, args);
    va_end(args);
}


------------------------------------
int printf(const char *format, ...)

int fprintf(FILE *stream, const char *format, ...)

int sprintf (char *str, const char *format, ...)


#include <stdio.h>
/* va_list versions of above */
int vprintf(const char *format, va_list ap);
int vfprintf(FILE *stream, const char *format, va_list ap);
int vsprintf(char *str, const char *format, va_list ap);
int vsnprintf(char *str, size_t size, const char *format, va_list ap);
int vasprintf(char **ret, const char *format, va_list ap);

반응형
Posted by 공간사랑
,