Mercurial > hg > Members > kono > tree_dandy2
view debug.c @ 0:01387a2e419e
initial version
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 07 Dec 2010 15:39:45 +0900 |
parents | |
children | 972a7f233b23 |
line wrap: on
line source
#include <stdlib.h> #include <stdio.h> #include <stdarg.h> #include "count2.h" #include "Enemy.h" static FILE *dbg_fp; void dbg_init(char *fname) { dbg_fp = fopen(fname, "w"); } int dbg_printf(char *format, ...) { va_list ap; va_start(ap, format); vfprintf(dbg_fp, format, ap); va_end(ap); // fflush(dbg_fp); return (0); }