blob: e6989393df19acdad4e603fb8b7b467e101d72a1 [file] [log] [blame]
#define _GNU_SOURCE
#include <netdb.h>
#include <stdio.h>
void herror(const char* msg) {
fprintf(stderr, "%s%s%s", msg ? msg : "", msg ? ": " : "", hstrerror(h_errno));
}