summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/libcruft/hstrerror.c
blob: fb8902f67402dc374b69481cf6254633ec6f0800 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <netdb.h>

const char* hstrerror(int h_errno) {
  switch (h_errno) {
  case 0: return "OK";
  case NO_DATA: return "No data of requested type.";
  case TRY_AGAIN: return "Temporary failure.";
  case HOST_NOT_FOUND:
  default: return "Unknown host.";
  }
}