Lines Matching defs:ptr
80 const char *ptr;
83 ptr = rgb;
86 if (*ptr == '#') {
87 if (strlen(ptr) != 7)
89 v = strtoul(ptr + 1, &endptr, 16);
101 v = strtoul(ptr, &endptr, 10);
102 if (ptr == endptr)
107 ptr = endptr;
110 while (*ptr == ',' || *ptr == ' ')
111 ptr++;
113 v = strtoul(ptr, &endptr, 10);
114 if (ptr == endptr)
119 ptr = endptr;
122 while (*ptr == ',' || *ptr == ' ')
123 ptr++;
125 v = strtoul(ptr, &endptr, 10);
126 if (ptr == endptr)
131 ptr = endptr;
134 while (*ptr == ' ')
135 ptr++;
138 if (*ptr != 0)