hermes

HTTP GET/HEAD-only web server for static content.
git clone https://git.francescosaccone.com/hermes
Log | Files | Refs | README | LICENSE

utils.c (263B)


      1 #include <stdarg.h>
      2 #include <stdio.h>
      3 #include <stdlib.h>
      4 
      5 #include "utils.h"
      6 
      7 void
      8 print_error(const char *message, ...) {
      9 	va_list arguments;
     10 
     11 	va_start(arguments, message);
     12 	vfprintf(stderr, message, arguments);
     13 	va_end(arguments);
     14 
     15 	fprintf(stderr, "\n");
     16 }