Go to the source code of this file.
Functions | |
int | inet_pton4 (const char *src, unsigned char *dst) |
int | inet_pton6 (const char *src, unsigned char *dst) |
int | inet_pton (int af, const char *src, void *dst) |
int | inet_pton4 (src, dst) const char *src |
Variables | |
unsigned char * | dst |
|
|
|
Referenced by inet_pton(). |
|
Definition at line 44 of file inet_pton.c. References af, dst, inet_pton4(), and inet_pton6().
00047 { 00048 switch (af) { 00049 case AF_INET: 00050 return (inet_pton4(src, dst)); 00051 #ifdef INET6 00052 case AF_INET6: 00053 return (inet_pton6(src, dst)); 00054 #endif 00055 default: 00056 errno = EAFNOSUPPORT; 00057 return (-1); 00058 } 00059 /* NOTREACHED */ 00060 } |
|
Referenced by inet_pton(). |
|
Definition at line 129 of file inet_pton.c. Referenced by inet_ntop(), inet_ntop4(), inet_ntop6(), inet_pton(), and robust_move(). |