Lines Matching refs:cstr
46 const char *GetNextLabel(const char *cstr, char label[64]) in GetNextLabel() argument
49 while (*cstr && *cstr != '.') // While we have characters in the label... in GetNextLabel()
51 char c = *cstr++; in GetNextLabel()
52 …if (c == '\\' && *cstr) // If we have a backslash, and it's not the last character of the stri… in GetNextLabel()
54 c = *cstr++; in GetNextLabel()
55 if (isdigit(cstr[-1]) && isdigit(cstr[0]) && isdigit(cstr[1])) in GetNextLabel()
57 int v0 = cstr[-1] - '0'; // then interpret as three-digit decimal in GetNextLabel()
58 int v1 = cstr[ 0] - '0'; in GetNextLabel()
59 int v2 = cstr[ 1] - '0'; in GetNextLabel()
65 if (val <= 255) { c = (char)val; cstr += 2; } in GetNextLabel()
73 if (*cstr) cstr++; // Skip over the trailing dot (if present) in GetNextLabel()
74 return(cstr); in GetNextLabel()