We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b3065bd + b8939b2 commit 19a6cd3Copy full SHA for 19a6cd3
Documentation/technical/api-string-list.txt
@@ -83,7 +83,9 @@ Functions
83
84
Insert a new element to the string_list. The returned pointer can be
85
handy if you want to write something to the `util` pointer of the
86
- string_list_item containing the just added string.
+ string_list_item containing the just added string. If the given
87
+ string already exists the insertion will be skipped and the
88
+ pointer to the existing item returned.
89
+
90
Since this function uses xrealloc() (which die()s if it fails) if the
91
list needs to grow, it is safe not to check the pointer. I.e. you may
0 commit comments