Lines Matching defs:cstr
205 static const char *GetNextLabel(const char *cstr, char label[64])
208 while (*cstr && *cstr != '.') // While we have characters in the label...
210 char c = *cstr++;
213 c = *cstr++;
214 if (isdigit(cstr[-1]) && isdigit(cstr[0]) && isdigit(cstr[1]))
216 int v0 = cstr[-1] - '0'; // then interpret as three-digit decimal
217 int v1 = cstr[ 0] - '0';
218 int v2 = cstr[ 1] - '0';
220 if (val <= 255) { c = (char)val; cstr += 2; } // If valid three-digit decimal value, use it
226 if (*cstr) cstr++; // Skip over the trailing dot (if present)
228 return(cstr);