9 lines
167 B
C
9 lines
167 B
C
#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));
|
|
}
|