diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-08-16 20:46:00 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-08-16 20:46:00 +0000 |
commit | 15a903b21ce93800d5f3867bcb1eccfc349e653f (patch) | |
tree | 539bec05eef2499cae949f23f2a2d0e3d3ae3a45 /src/common/util.h | |
parent | bec9a6eb7df92e5d363c3e20a17a2a67c9fbedc1 (diff) | |
download | tor-15a903b21ce93800d5f3867bcb1eccfc349e653f.tar.gz tor-15a903b21ce93800d5f3867bcb1eccfc349e653f.zip |
Convenience function to do a strcmp on each member of a smartlist of strings
svn:r2243
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h index 0bf0a8c6ed..915fb9d9ad 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -147,6 +147,7 @@ void smartlist_add(smartlist_t *sl, void *element); void smartlist_add_all(smartlist_t *sl, const smartlist_t *s2); void smartlist_remove(smartlist_t *sl, void *element); int smartlist_isin(const smartlist_t *sl, void *element); +int smartlist_string_isin(const smartlist_t *sl, const char *element); int smartlist_overlap(const smartlist_t *sl1, const smartlist_t *sl2); void smartlist_intersect(smartlist_t *sl1, const smartlist_t *sl2); void smartlist_subtract(smartlist_t *sl1, const smartlist_t *sl2); |