source: asp3_tinet_ecnl_arm/trunk/musl-1.1.18/src/network/hstrerror.c@ 352

Last change on this file since 352 was 352, checked in by coas-nagasima, 6 years ago

arm向けASP3版ECNLを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-csrc;charset=UTF-8
File size: 361 bytes
Line 
1#define _GNU_SOURCE
2#include <netdb.h>
3#include "locale_impl.h"
4
5static const char msgs[] =
6 "Host not found\0"
7 "Try again\0"
8 "Non-recoverable error\0"
9 "Address not available\0"
10 "\0Unknown error";
11
12const char *hstrerror(int ecode)
13{
14 const char *s;
15 for (s=msgs, ecode--; ecode && *s; ecode--, s++) for (; *s; s++);
16 if (!*s) s++;
17 return LCTRANS_CUR(s);
18}
Note: See TracBrowser for help on using the repository browser.