Eventuellement oui. Je vais faire quelques vérifications tout de même, j'ai cru lire un truc dans le man qui me plait moyen.
Quote:
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);
The functions vprintf, vfprintf, vsprintf, vsnprintf are equivalent to the functions printf, fprintf, sprintf, snprintf, respectively,
except that they are called with a va_list instead of a variable number of arguments. These functions do not call the va_end macro.
Consequently, the value of ap is undefined after the call. The application should call va_end(ap) itself afterwards.
--
guitou