Home
last modified time | relevance | path

Searched refs:digits (Results 1 – 4 of 4) sorted by relevance

/bionic/libc/dns/nameser/
Dns_ttl.c99 int ch, digits, dirty; in ns_parse_ttl() local
103 digits = 0; in ns_parse_ttl()
111 digits++; in ns_parse_ttl()
114 if (digits == 0) in ns_parse_ttl()
128 digits = 0; in ns_parse_ttl()
131 if (digits > 0) { in ns_parse_ttl()
Dns_name.c51 static const char digits[] = "0123456789"; variable
162 *dn++ = digits[c / 100]; in ns_name_ntop()
163 *dn++ = digits[(c % 100) / 10]; in ns_name_ntop()
164 *dn++ = digits[c % 10]; in ns_name_ntop()
254 else if ((cp = strchr(digits, c)) != NULL) { in ns_name_pton2()
255 n = (int)(cp - digits) * 100; in ns_name_pton2()
257 (cp = strchr(digits, c)) == NULL) { in ns_name_pton2()
261 n += (int)(cp - digits) * 10; in ns_name_pton2()
263 (cp = strchr(digits, c)) == NULL) { in ns_name_pton2()
267 n += (int)(cp - digits); in ns_name_pton2()
/bionic/libc/upstream-openbsd/lib/libc/net/
Dinet_pton.c75 static const char digits[] = "0123456789"; in inet_pton4() local
85 if ((pch = strchr(digits, ch)) != NULL) { in inet_pton4()
86 u_int new = *tp * 10 + (pch - digits); in inet_pton4()
/bionic/tests/
Dstdio_test.cpp1976 std::string digits("0123456789"); in TEST() local
1977 FILE* fp = fmemopen(&digits[0], digits.size(), "r"); in TEST()