mirror of
https://github.com/fluencelabs/musl
synced 2025-06-28 22:22:01 +00:00
implement legacy function herror
based on patch by Timo Teräs; greatly simplified to use fprintf.
This commit is contained in:
8
src/network/herror.c
Normal file
8
src/network/herror.c
Normal file
@ -0,0 +1,8 @@
|
||||
#define _GNU_SOURCE
|
||||
#include <stdio.h>
|
||||
#include <netdb.h>
|
||||
|
||||
void herror(const char *msg)
|
||||
{
|
||||
fprintf(stderr, "%s%s%s", msg?msg:"", msg?": ":"", hstrerror(h_errno));
|
||||
}
|
Reference in New Issue
Block a user