/bionic/libc/string/ |
D | memccpy.c | 36 char ch = ~(char)c; /* ensure ch != c */ in memccpy() local 39 if (ch == c || p >= p_end) break; in memccpy() 40 *q++ = ch = *p++; in memccpy() 42 if (ch == c || p >= p_end) break; in memccpy() 43 *q++ = ch = *p++; in memccpy() 45 if (ch == c || p >= p_end) break; in memccpy() 46 *q++ = ch = *p++; in memccpy() 48 if (ch == c || p >= p_end) break; in memccpy() 49 *q++ = ch = *p++; in memccpy()
|
D | index.c | 34 index(const char *p, int ch) in index() argument 37 if (*p == ch) in index()
|
D | strchr.c | 34 strchr(const char *p, int ch) in strchr() argument 37 if (*p == ch) in strchr()
|
D | strrchr.c | 34 strrchr(const char *p, int ch) in strrchr() argument 39 if (*p == ch) in strrchr()
|
/bionic/libc/netbsd/resolv/ |
D | res_comp.c | 172 int pch = PERIOD, ch = *dn++; in res_hnok() local 174 while (ch != '\0') { in res_hnok() 177 if (periodchar(ch)) { in res_hnok() 180 if (!borderchar(ch)) in res_hnok() 183 if (!borderchar(ch)) in res_hnok() 186 if (!middlechar(ch)) in res_hnok() 189 pch = ch, ch = nch; in res_hnok() 215 int ch, escaped = 0; in res_mailok() local 222 while ((ch = *dn++) != '\0') { in res_mailok() 223 if (!domainchar(ch)) in res_mailok() [all …]
|
D | res_init.c | 133 #define ISSORTMASK(ch) (strchr(sort_mask, ch) != NULL) argument
|
/bionic/libc/netbsd/nameser/ |
D | ns_ttl.c | 89 int ch; in ns_format_ttl() local 91 for (p = odst; (ch = *p) != '\0'; p++) in ns_format_ttl() 92 if (isascii(ch) && isupper(ch)) in ns_format_ttl() 93 *p = tolower(ch); in ns_format_ttl() 103 int ch, digits, dirty; in ns_parse_ttl() local 109 while ((ch = *src++) != '\0') { in ns_parse_ttl() 110 if (!isascii(ch) || !isprint(ch)) in ns_parse_ttl() 112 if (isdigit(ch)) { in ns_parse_ttl() 114 tmp += (ch - '0'); in ns_parse_ttl() 120 if (islower(ch)) in ns_parse_ttl() [all …]
|
D | ns_name.c | 688 special(int ch) { in special() argument 689 switch (ch) { in special() 713 printable(int ch) { in printable() argument 714 return (ch > 0x20 && ch < 0x7f); in printable() 722 mklower(int ch) { in mklower() argument 723 if (ch >= 0x41 && ch <= 0x5A) in mklower() 724 return (ch + 0x20); in mklower() 725 return (ch); in mklower()
|
/bionic/libc/netbsd/net/ |
D | base64.c | 221 int state, ch; local 230 while ((ch = (u_char) *src++) != '\0') { 231 if (isspace(ch)) /* Skip whitespace anywhere. */ 234 if (ch == Pad64) 237 pos = strchr(Base64, ch); 293 if (ch == Pad64) { /* We got a pad char. */ 294 ch = *src++; /* Skip it, get next. */ 302 for (; ch != '\0'; ch = (u_char) *src++) 303 if (!isspace(ch)) 306 if (ch != Pad64) [all …]
|
/bionic/libc/inet/ |
D | inet_pton.c | 76 int saw_digit, octets, ch; in inet_pton4() local 82 while ((ch = *src++) != '\0') { in inet_pton4() 85 if ((pch = strchr(digits, ch)) != NULL) { in inet_pton4() 96 } else if (ch == '.' && saw_digit) { in inet_pton4() 131 int ch, saw_xdigit, count_xdigit; in inet_pton6() local 144 while ((ch = *src++) != '\0') { in inet_pton6() 147 if ((pch = strchr((xdigits = xdigits_l), ch)) == NULL) in inet_pton6() 148 pch = strchr((xdigits = xdigits_u), ch); in inet_pton6() 160 if (ch == ':') { in inet_pton6() 179 if (ch == '.' && ((tp + INADDRSZ) <= endp) && in inet_pton6()
|
/bionic/libc/stdlib/ |
D | strntoumax.c | 32 static inline int digitval(int ch) in digitval() argument 36 d = (unsigned)(ch - '0'); in digitval() 39 d = (unsigned)(ch - 'a'); in digitval() 42 d = (unsigned)(ch - 'A'); in digitval()
|
/bionic/libc/stdio/ |
D | vfprintf.c | 162 int ch; /* character from fmt */ in vfprintf() local 357 rflag: ch = *fmt++; in vfprintf() 358 reswitch: switch (ch) { in vfprintf() 390 if ((ch = *fmt++) == '*') { in vfprintf() 396 while (is_digit(ch)) { in vfprintf() 397 n = 10 * n + to_digit(ch); in vfprintf() 398 ch = *fmt++; in vfprintf() 400 if (ch == '$') { in vfprintf() 423 n = 10 * n + to_digit(ch); in vfprintf() 424 ch = *fmt++; in vfprintf() [all …]
|
/bionic/libc/unistd/ |
D | syslog.c | 109 char ch, *p, *t; in vsyslog_r() local 194 for (t = fmt_cpy, fmt_left = FMT_LEN; (ch = *fmt); ++fmt) { in vsyslog_r() 195 if (ch == '%' && fmt[1] == 'm') { in vsyslog_r() 210 } else if (ch == '%' && fmt[1] == '%' && fmt_left > 2) { in vsyslog_r() 217 *t++ = ch; in vsyslog_r()
|