summaryrefslogtreecommitdiff
path: root/logs.c
diff options
context:
space:
mode:
authorgayot_o <gayot_o@localhost>2013-11-19 02:43:27 +0000
committergayot_o <gayot_o@localhost>2013-11-19 02:45:46 +0000
commit459e2685158f1dc5a9cd3da1c3125889bc02f9d6 (patch)
treed4a205fed05e69d1184da0e76f1fb9ac49e06e43 /logs.c
parentb0155666fbbb6c4105c36ffcddb894d7d21e38ae (diff)
mplayer_server: first version of the server
Diffstat (limited to 'logs.c')
-rw-r--r--logs.c18
1 files changed, 18 insertions, 0 deletions
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 <stdarg.h>
+#include <stdio.h>
+
+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
+}