blob: c98acdd47bb95d8affdd604806c967ff7ecf4516 [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));
}