blob: 65f25ff3f45b6b0ce07ec61e8a8d54280b96817f (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
|
#define _GNU_SOURCE
#include <stdio.h>
#include <netdb.h>
void herror(const char *msg)
{
fprintf(stderr, "%s%s%s", msg?msg:"", msg?": ":"", hstrerror(h_errno));
}
|