Mercurial > hg > Members > koba > t_dandy
view debug.c @ 61:e66cab264350
RenderingEngine Task is worked on spe, task_dandy Task is worked on ppe
author | yutaka@localhost.localdomain |
---|---|
date | Sun, 06 Feb 2011 18:11:30 +0900 |
parents | 435ac1cdb64e |
children |
line wrap: on
line source
#include <stdlib.h> #include <stdio.h> #include <stdarg.h> #include "count2.h" static FILE *dbg_fp; void dbg_init(const char *fname) { dbg_fp = fopen(fname, "w"); } int dbg_printf(const char *format, ...) { va_list ap; va_start(ap, format); vfprintf(dbg_fp, format, ap); va_end(ap); // fflush(dbg_fp); return (0); }