diff --git a/src/strangeget.c b/src/strangeget.c index 0e02eb6..2cfd112 100644 --- a/src/strangeget.c +++ b/src/strangeget.c @@ -38,4 +38,11 @@ int xml_getbinaprop(node *n, const char *key) bool xml_hasproperty(node *n, const char *key) { return (xml_gettempprop(n, key) != NULL); +} + +bool xml_propcontains(node *n, const char *key, const char *tofind) +{ + char *tmp = xml_gettempprop(n, key); + + return tmp && my_strstr(tmp, tofind); } \ No newline at end of file