return strlen(s) ? s : NULL;
}
+/**
+ * conf_replace_char - replace one char with another.
+ */
+
+char *conf_replace_char(char *s, char from, char to)
+{
+ if (!s)
+ return NULL;
+
+ for ( ; *s; s++)
+ if (*s == from)
+ *s = to;
+
+ return s;
+}
+
/**
* conf_get_param_pair - Get the next 'name=value' parameter pair.
* @str: The string to process.