Name

set_is_member

Synopsis

int set_is_member(const Set *set, const void *data);

Return Value

1 if the member is found, or otherwise.

Description

Determines whether the data specified by data matches that of a member in the set specified by set.

Complexity

O (n), where n is the number of members in the set.

Get Mastering Algorithms with C now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.