Mercurial > hg > Members > koba > t_dandy
comparison debug.c @ 0:435ac1cdb64e
create task dandy directry.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 11 Dec 2010 21:25:28 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:435ac1cdb64e |
---|---|
1 #include <stdlib.h> | |
2 #include <stdio.h> | |
3 #include <stdarg.h> | |
4 #include "count2.h" | |
5 | |
6 static FILE *dbg_fp; | |
7 | |
8 void dbg_init(const char *fname) | |
9 { | |
10 dbg_fp = fopen(fname, "w"); | |
11 } | |
12 | |
13 int dbg_printf(const char *format, ...) | |
14 { | |
15 va_list ap; | |
16 va_start(ap, format); | |
17 vfprintf(dbg_fp, format, ap); | |
18 va_end(ap); | |
19 // fflush(dbg_fp); | |
20 return (0); | |
21 } |