musl-tcc/src/network/herror.c

9 lines
167 B
C
Raw Permalink Normal View History

2022-03-20 08:48:53 +00:00
#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));
}