Last change
on this file since 380 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
|
Rev | Line | |
---|
[352] | 1 | #define _GNU_SOURCE
|
---|
| 2 | #include <netdb.h>
|
---|
| 3 | #include "locale_impl.h"
|
---|
| 4 |
|
---|
| 5 | static 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 |
|
---|
| 12 | const 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.