40 const char *cp = line;
46 cp = strchr(cp, ' '); \
61 const char *start_of_word = cp;
62 const char *end_of_word = strchr(cp,
' ');
64 end_of_word = cp + strlen(cp);
66 if (start_of_word == end_of_word)
69 const char *eq = memchr(start_of_word,
'=', end_of_word - start_of_word);
73 if (eq == start_of_word)
75 if (eq == end_of_word - 1)
77 if (memchr(eq+1,
'=', end_of_word - (eq+1)))
81 if (0 == *end_of_word)
Master header file for Tor-specific functionality.
int validate_recommended_package_line(const char *line)
Header file for recommend_pkg.c.