#include <stdio.h> #include <stdlib.h> #include <stdarg.h> static void myprintf(char *string, ...) { va_list list; va_start(list,string); vprintf(string,list); va_end(string); } int main(void) { char hello[] = "hello world\n"; myprintf("HELLO WORLD\n"); myprintf("%d * %d = %d\n",20,5,20*5); myprintf("%s",hello); return 1; } /* affiche HELLO WORLD 20 * 5 = 100 hello world */