Home | History | Annotate | Download | only in Clients

Lines Matching refs:cstr

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