summaryrefslogblamecommitdiff
path: root/src/network/herror.c
blob: 87f8cff4fd47ed50813c5b85191b59b645508377 (plain) (tree)
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));
}