]> git.ozlabs.org Git - ccan/blobdiff - ccan/strset/strset.h
strset: set errno on strset_add failures.
[ccan] / ccan / strset / strset.h
index 8d0d307e34c483d2b21351defe68d0ba0baab3c1..b8116c35c471813e5330d10b930aaaf82b26e69b 100644 (file)
@@ -65,8 +65,8 @@ char *strset_test(const struct strset *set, const char *member);
  * @set: the set.
  * @member: the string to place in the set.
  *
- * This returns false if we run out of memory, or (more normally) if that
- * string already appears in the set.
+ * This returns false if we run out of memory (errno = ENOMEM), or
+ * (more normally) if that string already appears in the set (EEXIST).
  *
  * Note that the pointer is placed in the set, the string is not copied.  If
  * you want a copy in the set, use strdup().