75 if (*++cp ==
'x' || *cp ==
'X')
80 while ((
c = *cp) !=
'\0')
82 if (isdigit((
unsigned char)
c))
88 if (base == 16 && isxdigit((
unsigned char)
c))
91 (
c + 10 - (islower((
unsigned char)
c) ?
'a' :
'A'));
103 if (pp >= parts + 3 ||
val > 0xff)
115 if (!isspace((
unsigned char) *cp++))
131 val |= parts[0] << 24;
137 val |= (parts[0] << 24) | (parts[1] << 16);
143 val |= (parts[0] << 24) | (parts[1] << 16) | (parts[2] << 8);
int inet_aton(const char *cp, struct in_addr *addr)