Lines Matching defs:ptr
66 char *ptr, *to;
68 if ((ptr = strpbrk(range, ",-")) == NULL) {
74 if (!do_inet_aton(range, ptr, &list->cur.ip))
76 if (*ptr == ',') {
82 to = ptr+1;
83 if ((ptr = strpbrk(to, ",-")) == NULL)
84 ptr = to + strlen(to);
87 if (!do_inet_aton(to, ptr, &endip))
103 char *ptr, *to, *end;
105 ptr = list->cur.srcptr;
106 if (ptr != NULL && (ptr = strchr(ptr, ',')) != NULL)
107 ptr++;
109 ptr = list->src;
111 while (*ptr != '\0' && !iplist_setrange(list, ptr)) {
112 if ((end = strchr(ptr, ',')) == NULL)
113 end = ptr + strlen(ptr);
114 if (end == ptr)
117 (int)(end - ptr), ptr);
118 to = ptr;
122 if (*ptr == '\0')
123 ptr = list->src;