tinygi
annotate 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 |
rev | line source |
---|---|
nuclear@0 | 1 #include <stdio.h> |
nuclear@0 | 2 #include <stdarg.h> |
nuclear@0 | 3 #include "logger.h" |
nuclear@0 | 4 |
nuclear@0 | 5 void tgi_log(const char *fmt, ...) |
nuclear@0 | 6 { |
nuclear@0 | 7 va_list ap; |
nuclear@0 | 8 |
nuclear@0 | 9 va_start(ap, fmt); |
nuclear@0 | 10 vfprintf(stderr, fmt, ap); |
nuclear@0 | 11 va_end(ap); |
nuclear@0 | 12 } |