diff options
Diffstat (limited to 'tst')
-rw-r--r-- | tst/va_test.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/tst/va_test.c b/tst/va_test.c index d92e1aa..560c243 100644 --- a/tst/va_test.c +++ b/tst/va_test.c @@ -2,15 +2,20 @@ #include <stdlib.h> #include <stdarg.h> -void espik_debug_print (char *fct, ...) +void espik_debug_print (char* fct, char *fmt, ...) { va_list ap; char c, *s; int d, e; - va_start (ap, fct); - printf("fct : %s\n", *(fct+1)); - while (*fct) +// va_start (ap, fct); + + va_copy (ap, fmt); + + printf ("%s: + +// printf("fct : %s\n", *(fct+1)); +/* while (*fct) { // fprintf (stderr, ">fct : %c\n", *(fct+1)); switch (*fct++) @@ -31,7 +36,7 @@ void espik_debug_print (char *fct, ...) // fprintf (stderr, "<fct : %c\n", *fct); } fprintf (stderr, "\n"); - +*/ va_end (ap); } |