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