Procházet zdrojové kódy

Correct docs for config_lines_dup_and_filter

Nick Mathewson před 8 roky
rodič
revize
55873107d0
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      src/common/confline.c

+ 2 - 1
src/common/confline.c

@@ -342,7 +342,8 @@ config_lines_dup(const config_line_t *inp)
 }
 }
 
 
 /** Return a newly allocated deep copy of the lines in <b>inp</b>,
 /** Return a newly allocated deep copy of the lines in <b>inp</b>,
- * but only the ones that match <b>key</b>. */
+ * but only the ones whose keys begin with <b>key</b> (case-insensitive).
+ * If <b>key</b> is NULL, do not filter. */
 config_line_t *
 config_line_t *
 config_lines_dup_and_filter(const config_line_t *inp,
 config_lines_dup_and_filter(const config_line_t *inp,
                             const char *key)
                             const char *key)