about summary refs log tree commit diff
path: root/src/network/herror.c
blob: 87f8cff4fd47ed50813c5b85191b59b645508377 (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\n", msg?msg:"", msg?": ":"", hstrerror(h_errno));
}