반응형
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);
반응형