Lines Matching defs:len
67 size_t len = strlen(line);
68 if (len > 0 && line[len - 1] != '\n' && len < length - 1) {
69 line[len] = '\n';
70 line[len + 1] = '\0';
147 static int dns_parse_callback(void *c, int rr, const void *data, int len, const void *packet, int plen)
162 if (len != 4) return -1;
166 if (len != 16) return -1;
172 memcpy(ctx->addrs[ctx->cnt++].addr, data, len);
361 unsigned char len, mask;
385 if (memcmp(a->s6_addr, defpolicy[i].addr, defpolicy[i].len))
387 if ((a->s6_addr[defpolicy[i].len] & defpolicy[i].mask)
388 != defpolicy[i].addr[defpolicy[i].len])
444 /* reject empty name and check len so it fits into temp bufs */
774 int len = strlen(host_ips);
775 if (len == 0) {
786 char *host_ips_str = calloc(1, len + 1);
791 memcpy(host_ips_str, host_ips, len + 1);