diff options
Diffstat (limited to 'lib/utils.c')
-rw-r--r-- | lib/utils.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/utils.c b/lib/utils.c new file mode 100644 index 0000000..7764e50 --- /dev/null +++ b/lib/utils.c @@ -0,0 +1,15 @@ +#include <config.h> + +#include "utils.h" + +#include <stdarg.h> +#include <stdio.h> + +void debug( const char* fmt, ... ) + { + va_list va; + va_start( va, fmt ); + vfprintf( stderr, fmt, va ); + va_end( va ); + fprintf( stderr, "\n" ); + } |