/* found_key(): Found key without value in parameter list (comma separated). */
static bool found_key(const char *str, const char *key)
/* found_key(): Found key without value in parameter list (comma separated). */
static bool found_key(const char *str, const char *key)
{
	char *k;
	char *s, *strcopy;
	bool result = false;
	strcopy = strdup(str);
	if (!strcopy)
		return NULL;
	s = strcopy;
	while (s) {
		k = strsep(&s, ",");
		if (!k)
			break;
		if  (strcmp(k, key) == 0) {
			result = true;
			break;
		}
	}
	free(strcopy);
	return result;
}