• Home
  • Raw
  • Download

Lines Matching refs:c

102 	u_char c;  in ns_name_ntop()  local
148 c = *cp++; in ns_name_ntop()
149 if (special(c)) { in ns_name_ntop()
155 *dn++ = (char)c; in ns_name_ntop()
156 } else if (!printable(c)) { in ns_name_ntop()
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()
170 *dn++ = (char)c; in ns_name_ntop()
223 int c, n, escaped, e = 0; in ns_name_pton2() local
231 while ((c = *src++) != 0) { in ns_name_pton2()
233 if (c == '[') { /* start a bit string label */ in ns_name_pton2()
246 if ((c = *src++) == 0) in ns_name_pton2()
248 else if (c != '.') { in ns_name_pton2()
254 else if ((cp = strchr(digits, c)) != NULL) { in ns_name_pton2()
256 if ((c = *src++) == 0 || in ns_name_pton2()
257 (cp = strchr(digits, c)) == NULL) { in ns_name_pton2()
262 if ((c = *src++) == 0 || in ns_name_pton2()
263 (cp = strchr(digits, c)) == NULL) { in ns_name_pton2()
272 c = n; in ns_name_pton2()
275 } else if (c == '\\') { in ns_name_pton2()
278 } else if (c == '.') { in ns_name_pton2()
279 c = (int)(bp - label - 1); in ns_name_pton2()
280 if ((c & NS_CMPRSFLGS) != 0) { /* Label too big. */ in ns_name_pton2()
288 *label = c; in ns_name_pton2()
291 if (c != 0) { in ns_name_pton2()
306 if (c == 0 || *src == '.') { in ns_name_pton2()
317 *bp++ = (u_char)c; in ns_name_pton2()
319 c = (int)(bp - label - 1); in ns_name_pton2()
320 if ((c & NS_CMPRSFLGS) != 0) { /* Label too big. */ in ns_name_pton2()
329 *label = c; in ns_name_pton2()
330 if (c != 0) { in ns_name_pton2()
361 u_char c; in ns_name_ntol() local
389 c = *cp++; in ns_name_ntol()
390 if (isascii(c) && isupper(c)) in ns_name_ntol()
391 *dn++ = tolower(c); in ns_name_ntol()
393 *dn++ = c; in ns_name_ntol()
1050 char c; in encode_bitsring() local
1068 switch((c = *cp)) { in encode_bitsring()
1086 if (!isdigit(c&0xff)) in encode_bitsring()
1090 if (c == '0') { in encode_bitsring()
1097 if (!isxdigit(c&0xff)) in encode_bitsring()
1100 value += digitvalue[(int)c]; in encode_bitsring()