From 459e2685158f1dc5a9cd3da1c3125889bc02f9d6 Mon Sep 17 00:00:00 2001 From: gayot_o Date: Tue, 19 Nov 2013 02:43:27 +0000 Subject: mplayer_server: first version of the server --- logs.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 logs.c (limited to 'logs.c') diff --git a/logs.c b/logs.c new file mode 100644 index 0000000..01d93fc --- /dev/null +++ b/logs.c @@ -0,0 +1,18 @@ +#include +#include + +void _log(const char *fmt, ...) +{ +#ifdef LOGS + va_list ap; + + va_start(ap, fmt); + + vfprintf(stderr, fmt, ap); + fputc('\n', stderr); + + va_end(ap); +#else + (void) fmt; +#endif +} -- cgit v1.2.3