Lines Matching +defs:val +defs:label
46 const char *GetNextLabel(const char *cstr, char label[64])
48 char *ptr = label;
49 while (*cstr && *cstr != '.') // While we have characters in the label...
60 int val = v0 * 100 + v1 * 10 + v2;
64 if (val == 0) val = '-';
65 if (val <= 255) { c = (char)val; cstr += 2; }
69 if (ptr >= label+64) { label[63] = 0; return(NULL); } // Illegal label more than 63 bytes
71 *ptr = 0; // Null-terminate label text
72 if (ptr == label) return(NULL); // Illegal empty label