aboutsummaryrefslogtreecommitdiff
path: root/src/network/herror.c
blob: 07c33a54aa60a2307b5d1cfb135a6b74c078a18b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#define _GNU_SOURCE
#include <stdio.h>
#include <netdb.h>

void herror(const char *msg)
{
	fprintf(stderr, "%s%s%s\n", msg?msg:"", msg?": ":"", hstrerror(h_errno));
}


#ifdef TEST
int
main(void) {
	return 0;
}
#endif