/bionic/libc/upstream-freebsd/lib/libc/string/ |
H A D | wcscat.c | 42 wchar_t *cp; local 44 cp = s1; 45 while (*cp != L'\0') 46 cp++; 47 while ((*cp++ = *s2++) != L'\0')
|
H A D | wcscpy.c | 42 wchar_t *cp; local 44 cp = s1; 45 while ((*cp++ = *s2++) != L'\0')
|
/bionic/tests/headers/posix/ |
H A D | unistd_h.c | 377 char* cp; local 378 cp = optarg;
|
/bionic/libc/upstream-openbsd/lib/libc/string/ |
H A D | memrchr.c | 28 const unsigned char *cp; local 31 cp = (unsigned char *)s + n; 33 if (*(--cp) == (unsigned char)c) 34 return((void *)cp);
|
/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
H A D | getenv.c | 52 char **p, *cp; local 56 for (p = environ + *offset; (cp = *p) != NULL; ++p) { 57 for (np = name, i = len; i && *cp; i--) 58 if (*cp++ != *np++) 60 if (i == 0 && *cp++ == '=') { 62 return (cp);
|
H A D | setenv.c | 46 char **P, *cp; local 50 for (cp = str; *cp && *cp != '='; ++cp) 52 if (*cp != '=') { 57 if (__findenv(str, (int)(cp - str), &offset) != NULL) { 60 while (__findenv(str, (int)(cp - str), &offset)) {
|
/bionic/libc/bionic/ |
H A D | arpa_inet.cpp | 25 in_addr_t inet_network(const char* cp) { argument 26 in_addr_t network_order = inet_addr(cp); 30 in_addr_t inet_addr(const char* cp) { argument 32 return inet_aton(cp, &addr) ? addr.s_addr : INADDR_NONE; 35 int inet_aton(const char* cp, in_addr* addr) { argument 43 parts[i] = strtoul(cp, &end, 0); 44 if (errno != 0 || end == cp || (*end != '.' && *end != '\0')) return 0; 46 cp = end + 1;
|
H A D | fts.c | 186 char *cp; local 197 if ((cp = strrchr(p->fts_name, '/')) && (cp != p->fts_name || cp[1])) { 198 len = strlen(++cp); 199 memmove(p->fts_name, cp, len + 1); 557 char *cp = NULL; local 636 cp = sp->fts_path + len; 637 *cp++ = '/'; 680 cp [all...] |
/bionic/libc/dns/nameser/ |
H A D | ns_samedomain.c | 58 const char *cp; local 144 cp = a + diff; 145 return (strncasecmp(cp, b, lb) == 0);
|
H A D | ns_name.c | 100 const u_char *cp; local 106 cp = src; 110 while ((n = *cp++) != 0) { 123 if ((l = labellen(cp - 1)) < 0) { 139 if ((m = decode_bitstring(&cp, dn, eom)) < 0) 148 c = *cp++; 224 char *cp; local 234 if ((cp = strchr(src, ']')) == NULL) { 238 if ((e = encode_bitsring(&src, cp + 2, 254 else if ((cp 359 const u_char *cp; local 693 const u_char *cp; local 937 const u_char *dn, *cp, *sp; local 997 const unsigned char *cp = *cpp; local 1048 const char *cp = *bp; local [all...] |
/bionic/libc/dns/net/ |
H A D | sethostent.c | 185 char **cp; local 186 for (cp = hp->h_aliases; *cp != NULL; cp++) 187 if (strcasecmp(*cp, name) == 0) 189 if (*cp == NULL) continue;
|
H A D | gethnamaddr.c | 206 BOUNDS_CHECK(cp, x); \ 207 cp += (x); \ 221 const u_char *cp; local 264 cp = answer->buf; 269 n = dn_expand(answer->buf, eom, cp, bp, (int)(ep - bp)); 293 while (ancount-- > 0 && cp < eom && !had_error) { 294 n = dn_expand(answer->buf, eom, cp, bp, (int)(ep - bp)); 299 cp += n; /* name */ 300 BOUNDS_CHECK(cp, 3 * INT16SZ + INT32SZ); 301 type = _getshort(cp); 706 const char *cp; local 963 char *cp, **q; local 1347 char *cp, **q, *ptr; local [all...] |
/bionic/libc/dns/resolv/ |
H A D | res_mkquery.c | 127 register u_char *cp, *ep; local 150 cp = buf + HFIXEDSZ; 162 if (ep - cp < QFIXEDSZ) 164 if ((n = dn_comp(dname, cp, ep - cp - QFIXEDSZ, dnptrs, 167 cp += n; 168 ns_put16(type, cp); 169 cp += INT16SZ; 170 ns_put16(class, cp); 171 cp 238 register u_char *cp, *ep; local [all...] |
H A D | res_query.c | 228 const char *cp, * const *domain; local 241 for (cp = name; *cp != '\0'; cp++) 242 dots += (*cp == '.'); 244 if (cp > name && *--cp == '.') 248 if (!dots && (cp = res_hostalias(statp, name, tmp, sizeof tmp))!= NULL) 249 return (res_nquery(statp, cp, class, type, answer, anslen));
|
H A D | res_init.c | 171 register char *cp, **pp; local 249 if ((cp = getenv("LOCALDOMAIN")) != NULL) { 250 (void)strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1); 261 cp = statp->defdname; 263 *pp++ = cp; 264 for (n = 0; *cp && pp < statp->dnsrch + MAXDNSRCH; cp++) { 265 if (*cp == '\n') /* silly backwards compat */ 267 else if (*cp == ' ' || *cp 495 const char *cp = options; local [all...] |
H A D | res_debug.c | 202 const u_char *cp = ns_rr_rdata(rr); local 205 GETSHORT(optcode, cp); 206 GETSHORT(optlen, cp); 216 cp[i]); 220 isprint(cp[i])? 221 cp[i] : '.'); 233 cp[i]); 237 isprint(cp[i]) ? 238 cp[i] : '.'); 351 p_cdnname(const u_char *cp, cons argument 365 p_cdname(const u_char *cp, const u_char *msg, FILE *file) argument 373 p_fqnname(const u_char *cp, const u_char *msg, int msglen, char *name, int namelen) argument 394 p_fqname(const u_char *cp, const u_char *msg, FILE *file) argument 781 const char *cp; local 819 const char *cp; local 916 const char *cp, *maxcp; local 1028 const u_char *cp = binary; local [all...] |
H A D | res_send.c | 289 const u_char *cp = buf + HFIXEDSZ; local 296 n = dn_expand(buf, eom, cp, tname, sizeof tname); 299 cp += n; 300 if (cp + 2 * INT16SZ > eom) 302 ttype = ns_get16(cp); cp += INT16SZ; 303 tclass = ns_get16(cp); cp += INT16SZ; 326 const u_char *cp = buf1 + HFIXEDSZ; local 346 n = dn_expand(buf1, eom1, cp, tnam 768 u_char *cp; local [all...] |
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
H A D | mktemp.c | 47 char *start, *cp, *ep; local 76 cp = start; 86 for (i = 0; i < nitems(rbuf) && cp != ep; i++) 87 *cp++ = tempchars[rbuf[i] % NUM_CHARS]; 88 } while (cp != ep);
|
/bionic/libc/kernel/uapi/linux/ |
H A D | hdlcdrv.h | 55 struct hdlcdrv_channel_params cp; member in union:hdlcdrv_ioctl::__anon447
|
/bionic/libc/stdio/ |
H A D | vfprintf.cpp | 47 CHAR_TYPE* cp; /* handy char pointer (short term usage) */ local 62 * C: cp points to the string MMMNNN. Leading and trailing 163 for (cp = fmt; (ch = *fmt) != '\0' && ch != '%'; fmt++) continue; 164 if (fmt != cp) { 165 ptrdiff_t m = fmt - cp; 167 PRINT(cp, m); 320 cp = buf; 323 *(cp = buf) = GETARG(int); 355 dtoaresult = cp = __hldtoa(fparg.ldbl, xdigs, prec, &expt, &signflag, &dtoaend); 362 dtoaresult = cp [all...] |
H A D | vfwprintf.cpp | 47 CHAR_TYPE* cp; /* handy char pointer (short term usage) */ local 62 * C: cp points to the string MMMNNN. Leading and trailing 152 for (cp = fmt; (ch = *fmt) != '\0' && ch != '%'; fmt++) continue; 153 if (fmt != cp) { 154 ptrdiff_t m = fmt - cp; 156 PRINT(cp, m); 300 *(cp = buf) = (wchar_t)GETARG(wint_t); 302 *(cp = buf) = (wchar_t)btowc(GETARG(int)); 349 cp = convbuf = helpers::mbsconv(dtoaresult, -1); 350 if (cp [all...] |
/bionic/libc/versioner-dependencies/common/kernel_uapi/linux/ |
H A D | hdlcdrv.h | 55 struct hdlcdrv_channel_params cp; member in union:hdlcdrv_ioctl::__anon1594
|
/bionic/libm/upstream-freebsd/lib/msun/src/ |
H A D | e_powf.c | 48 cp = 9.6179670095e-01, /* 0x3f76384f =2/(3ln2) */ variable 49 cp_h = 9.6191406250e-01, /* 0x3f764000 =12b cp */ 193 z_l = cp_l*p_h+p_l*cp+dp_l[k];
|
H A D | e_pow.c | 89 cp = 9.61796693925975554329e-01, /* 0x3FEEC709, 0xDC3A03FD =2/(3ln2) */ variable 90 cp_h = 9.61796700954437255859e-01, /* 0x3FEEC709, 0xE0000000 =(float)cp */ 248 z_l = cp_l*p_h+p_l*cp+dp_l[k];
|
/bionic/tools/versioner/dependencies/common/kernel_uapi/linux/ |
H A D | hdlcdrv.h | 55 struct hdlcdrv_channel_params cp; member in union:hdlcdrv_ioctl::__anon2864
|