Lines Matching defs:end
139 /* If the string between 'str' and 'end' begins with 'prefixlen' characters
144 has_prefix(const char* str, const char* end, const char* prefix, size_t prefixlen)
146 if ((end-str) >= (ptrdiff_t)prefixlen && !memcmp(str, prefix, prefixlen))
156 #define HAS_CONST_PREFIX(str,end,prefix) has_prefix((str),(end),prefix,CONST_STRLEN(prefix))
165 const char *end;
176 end = s + size;
177 while (s < end) {
180 /* buffer is 0-terminated, no need to check p < end */
190 if ((a = HAS_CONST_PREFIX(s, end, "ACTION=")) != NULL) {
197 } else if ((a = HAS_CONST_PREFIX(s, end, "SEQNUM=")) != NULL) {
199 } else if ((a = HAS_CONST_PREFIX(s, end, "SUBSYSTEM=")) != NULL) {