tinygi
diff src/logger.c @ 0:16fdca2a1ef5
initial tinygi commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 19 Jul 2015 18:30:29 +0300 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/logger.c Sun Jul 19 18:30:29 2015 +0300 1.3 @@ -0,0 +1,12 @@ 1.4 +#include <stdio.h> 1.5 +#include <stdarg.h> 1.6 +#include "logger.h" 1.7 + 1.8 +void tgi_log(const char *fmt, ...) 1.9 +{ 1.10 + va_list ap; 1.11 + 1.12 + va_start(ap, fmt); 1.13 + vfprintf(stderr, fmt, ap); 1.14 + va_end(ap); 1.15 +}