diff options
author | gayot_o <gayot_o@localhost> | 2013-11-19 02:43:27 +0000 |
---|---|---|
committer | gayot_o <gayot_o@localhost> | 2013-11-19 02:45:46 +0000 |
commit | 459e2685158f1dc5a9cd3da1c3125889bc02f9d6 (patch) | |
tree | d4a205fed05e69d1184da0e76f1fb9ac49e06e43 /logs.c | |
parent | b0155666fbbb6c4105c36ffcddb894d7d21e38ae (diff) |
mplayer_server: first version of the server
Diffstat (limited to 'logs.c')
-rw-r--r-- | logs.c | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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 +} |