aboutsummaryrefslogtreecommitdiff
path: root/tst
diff options
context:
space:
mode:
authorbeber <beber>2005-12-06 16:04:23 +0000
committerbeber <beber>2005-12-06 16:04:23 +0000
commit0ede1a9ce40ea5cc0910e3ffd7df87c40f9e2b79 (patch)
tree10d219a3e75f11cb985d35b9902c0e3cdf7a5718 /tst
parentstart a function for debug printf (diff)
downloadespik-0ede1a9ce40ea5cc0910e3ffd7df87c40f9e2b79.tar.xz
maj
Diffstat (limited to 'tst')
-rw-r--r--tst/va_test.c15
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);
}